00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __GU_BreakpointConSelection_h__
00024 #define __GU_BreakpointConSelection_h__
00025
00026 #include "GU_API.h"
00027 #include "GU_BreakpointSelection.h"
00028
00029 #define GU_breakpointConSelectName "selectedConnectedBreakpoints"
00030
00031 class GEO_Breakpoint;
00032
00033 class GU_API GU_BreakpointConSelection : public GU_BreakpointSelection
00034 {
00035 public:
00036
00037
00038
00039
00040 GU_BreakpointConSelection(GU_Detail &gdp, const char *prefix = 0);
00041 virtual ~GU_BreakpointConSelection(void);
00042
00043
00044 virtual GU_Selection &operator=(GU_PointSelection &);
00045 virtual GU_Selection &operator=(GU_PrimSelection &);
00046 virtual GU_Selection &operator=(GU_EdgeSelection &);
00047 virtual GU_Selection &operator=(GU_BreakpointSelection &);
00048 virtual GU_Selection &operator=(GU_VertexSelection &);
00049 virtual GU_Selection &operator=(GU_PointGroupSelection &);
00050 virtual GU_Selection &operator=(GU_PrimGroupSelection &);
00051
00052
00053 virtual int add(GEO_Point &pt, int ordered=0);
00054 virtual int add(GEO_Primitive &prim, int ordered=0);
00055 virtual int add(GB_Edge &edge, int ordered=0);
00056 virtual int add(GEO_Breakpoint &b, int ordered=0);
00057 virtual int add(GB_VertexData &vtx, int ordered=0);
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067 virtual int remove(GEO_Point &pt, int ordered=0);
00068 virtual int remove(GEO_Primitive &prim, int ordered=0);
00069 virtual int remove(GB_Edge &edge, int ordered=0);
00070 virtual int remove(GEO_Breakpoint &b, int ordered=0);
00071 virtual int remove(GB_VertexData &vtx, int ordered=0);
00072
00073
00074 virtual void clear(void);
00075 virtual void clearAndDestroy(void);
00076
00077
00078 virtual int classType(void) const;
00079
00080
00081 virtual GU_Selection *newSpecies(GU_Detail &gdp);
00082
00083 protected:
00084
00085
00086
00087 private:
00088
00089
00090 GU_BreakpointConSelection(GU_Detail &gdp,
00091 const GU_BreakpointConSelection &s);
00092
00093 int addPrimBreakpoints(GEO_Primitive &prim);
00094 int removePrimBreakpoints(GEO_Primitive &prim);
00095
00096
00097 };
00098
00099 #endif