CFx SDK Documentation  2022 SP0
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
CFxSelectionSet Class Referenceabstract

#include <FxSelectionSet.h>

Inheritance diagram for CFxSelectionSet:
OdStaticRxObject< OdDbSelectionSet > OdDbSelectionSet OdSelectionSet OdRxObject

Classes

class  CFxIterator
 
struct  MergeOptions
 
struct  MergeResult
 

Public Types

enum  {
  eRemoveNone = 0x0 , eRemoveOnLockedLayers = 0x1 , eRemoveOnOffLayers = 0x2 , eRemoveOnFrozenLayers = 0x4 ,
  eRemoveNotInCurrentSpace = 0x8 , eRemoveNotRectViewports = 0x10 , eRemoveOverallViewports = 0x20 , eRemoveNotInWorkingSet = 0x40 ,
  eRemoveCloud = 0x80 , eRemoveDefExceptNotInCurrentSpaceInvalid = eRemoveOnLockedLayers | eRemoveNotRectViewports | eRemoveOverallViewports , eRemoveDefaultInvalid = eRemoveOnLockedLayers | eRemoveNotInCurrentSpace | eRemoveNotRectViewports | eRemoveOverallViewports | eRemoveNotInWorkingSet , eRemoveDefaultInvalidButNonRectViewports = eRemoveOnLockedLayers | eRemoveNotInCurrentSpace | eRemoveOverallViewports | eRemoveNotInWorkingSet
}
 
typedef std::vector< const OdRxClass * > CLASS_VECTOR
 
typedef std::vector< size_t > SIZE_T_VECTOR
 
typedef int RemoveFlags
 

Public Member Functions

virtual ~CFxSelectionSet ()
 
virtual size_t GetNumber () const =0
 
virtual CFxDatabaseGetFxDatabase ()=0
 
virtual size_t GetLength () const =0
 
virtual size_t GetTotalSubents () const =0
 
virtual const OdDbObjectIdGetId (size_t index) const =0
 
virtual size_t SubentGetLength (size_t index) const =0
 
virtual const OdDbFullSubentPathSubentGetId (size_t index, size_t subentIndex) const =0
 
virtual void Clear ()=0
 
virtual bool IsMember (const OdDbObjectId &id) const =0
 
virtual bool IsMember (const OdDbFullSubentPath &path) const =0
 
virtual void GetClassesFound (CLASS_VECTOR &classes, SIZE_T_VECTOR &objects) const =0
 
virtual const OdRxClassGetCommonBaseClass () const =0
 
virtual const OdRxClassGetCommonBasePEClass () const =0
 
virtual void GetObjectsByClass (const OdRxClass *pClass, OdDbObjectIdArray &objects) const =0
 
virtual int GetNTHX (int index, fdt_resbufW **data) const =0
 
virtual bool Add (const OdDbObjectId &objId)=0
 
virtual bool Remove (const OdDbObjectId &objId)=0
 
virtual bool SubentAdd (const OdDbFullSubentPath &path)=0
 
virtual bool SubentRemove (const OdDbFullSubentPath &path)=0
 
virtual MergeResult Merge (const CFxSelectionSet *pSS, MergeOptions options)=0
 
virtual MergeResult Merge (const OdDbObjectIdArray &idsToMerge, MergeOptions options)=0
 
virtual void AddReactor (CFxSelectionSetReactor *pReactor)=0
 
virtual void RemoveReactor (CFxSelectionSetReactor *pReactor)=0
 
virtual bool IsHighlightEnabled () const =0
 
virtual void SetHighlightEnabled (bool enable)=0
 
virtual CFxIterator< CFxSelectionData > * CreateIterator () const =0
 
virtual bool IsEmpty () const =0
 

Static Public Member Functions

static CFxSelectionSetSelectByPoint (const OdGePoint3d &pointWCS, double pickboxEYE, CFxView *pView)
 
static CFxSelectionSetSelectByBox (const OdGePoint3d &firstPointWCS, const OdGePoint3d &secondPointWCS, CFxView *pView)
 
static CFxSelectionSetSelectByWindow (const OdGePoint3d &firstPointWCS, const OdGePoint3d &secondPointWCS, CFxView *pView)
 
static CFxSelectionSetSelectByCrossingWindow (const OdGePoint3d &firstPointWCS, const OdGePoint3d &secondPointWCS, CFxView *pView)
 
static CFxSelectionSetSelectByPolygon (const OdGePoint3dArray &pointsWCS, CFxView *pView)
 
static CFxSelectionSetSelectByCrossingPolygon (const OdGePoint3dArray &pointsWCS, CFxView *pView)
 
static CFxSelectionSetSelectByFence (const OdGePoint3dArray &pointsWCS, CFxView *pView)
 
static CFxSelectionSetSelectAll (CFxDocument *pDoc)
 
static CFxSelectionSetSelectLast (CFxDocument *pDoc)
 
static CFxSelectionSetSelectGroup (OdDbObjectId idGroup)
 
static CFxSelectionSetSelectPrevious (CFxDocument *pDoc)
 
static CFxSelectionSetSelectByView (CFxView *pView)
 
static CFxSelectionSetSelectForHatch (CFxView *pView, const OdGePoint3d &pickPoint, OdGeExtents3d *extents)
 

Additional Inherited Members

- Protected Member Functions inherited from OdStaticRxObject< OdDbSelectionSet >
void addRef ()
 
void release ()
 
- Protected Member Functions inherited from OdDbSelectionSet
 OdDbSelectionSet ()
 
 ODRX_DECLARE_MEMBERS (OdDbSelectionSet)
 
virtual const OdDbDatabasedatabase () const =0
 
virtual OdDbObjectIdArray objectIdArray () const =0
 
 TD_USING (OdSelectionSet::append)
 
virtual void append (const OdDbObjectId &entityId, OdDbSelectionMethod *pMethod=0)=0
 
virtual void append (const OdDbObjectIdArray &entityIds, OdDbSelectionMethod *pMethod=0)
 
virtual void append (const OdDbFullSubentPath &subent, OdDbSelectionMethod *pMethod=0)=0
 
virtual void append (const OdSelectionSet *pSSet)
 
 TD_USING (OdSelectionSet::remove)
 
virtual void remove (const OdDbObjectId &entityId)=0
 
virtual void remove (const OdDbObjectIdArray &entityIds)
 
virtual void remove (const OdDbFullSubentPath &subent)=0
 
virtual void remove (const OdSelectionSet *pSSet)
 
 TD_USING (OdSelectionSet::isMember)
 
virtual bool isMember (const OdDbObjectId &entityId) const =0
 
virtual bool isMember (const OdDbFullSubentPath &subent) const =0
 
 TD_USING (OdSelectionSet::method)
 
virtual OdDbSelectionMethodPtr method (const OdDbObjectId &entityId) const =0
 
virtual OdUInt32 subentCount (const OdDbObjectId &entityId) const =0
 
virtual bool getSubentity (const OdDbObjectId &entityId, OdUInt32 i, OdDbFullSubentPath &path) const =0
 
virtual OdDbSelectionMethodPtr method (const OdDbFullSubentPath &subent) const =0
 
- Protected Member Functions inherited from OdSelectionSet
 OdSelectionSet ()
 
 ODRX_DECLARE_MEMBERS (OdSelectionSet)
 
virtual const OdRxObjectbaseDatabase () const =0
 
virtual OdSelectionSetIteratorPtr newIterator () const =0
 
virtual OdUInt32 numEntities () const =0
 
virtual void append (OdDbStub *entityId, OdDbSelectionMethod *pMethod=0)=0
 
virtual void append (const OdDbBaseFullSubentPath &subent, OdDbSelectionMethod *pMethod=0)=0
 
virtual void remove (OdDbStub *entityId)=0
 
virtual void remove (const OdDbBaseFullSubentPath &subent)=0
 
virtual bool isMember (OdDbStub *entityId) const =0
 
virtual bool isMember (const OdDbBaseFullSubentPath &subent) const =0
 
virtual OdDbSelectionMethodPtr method (OdDbStub *entityId) const =0
 
virtual void clear ()=0
 
- Protected Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 
- Static Protected Member Functions inherited from OdDbSelectionSet
static OdDbSelectionSetPtr createObject (const OdDbDatabase *pDb)
 
static OdDbSelectionSetPtr select (const OdDbDatabase *pDb, const OdRxObject *pFilter=0)
 
static OdDbSelectionSetPtr select (const OdDbObjectId &vpId, int nPoints, const OdGePoint3d *wcsPts, OdDbVisualSelection::Mode mode=OdDbVisualSelection::kCrossing, OdDbVisualSelection::SubentSelectionMode sm=OdDbVisualSelection::kDisableSubents, const OdRxObject *pFilter=0)
 
- Static Protected Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

Description: Represents the selection set. Library: DDKERNEL

Definition at line 47 of file FxSelectionSet.h.

Member Typedef Documentation

◆ CLASS_VECTOR

typedef std::vector<const OdRxClass*> CFxSelectionSet::CLASS_VECTOR

Definition at line 98 of file FxSelectionSet.h.

◆ RemoveFlags

Definition at line 197 of file FxSelectionSet.h.

◆ SIZE_T_VECTOR

typedef std::vector<size_t> CFxSelectionSet::SIZE_T_VECTOR

Definition at line 99 of file FxSelectionSet.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Description:

Enumerator
eRemoveNone 
eRemoveOnLockedLayers 
eRemoveOnOffLayers 
eRemoveOnFrozenLayers 
eRemoveNotInCurrentSpace 
eRemoveNotRectViewports 
eRemoveOverallViewports 
eRemoveNotInWorkingSet 
eRemoveCloud 
eRemoveDefExceptNotInCurrentSpaceInvalid 
eRemoveDefaultInvalid 
eRemoveDefaultInvalidButNonRectViewports 

Definition at line 181 of file FxSelectionSet.h.

Constructor & Destructor Documentation

◆ ~CFxSelectionSet()

virtual CFxSelectionSet::~CFxSelectionSet ( )
virtual

Member Function Documentation

◆ Add()

virtual bool CFxSelectionSet::Add ( const OdDbObjectId objId)
pure virtual

Description:

◆ AddReactor()

virtual void CFxSelectionSet::AddReactor ( CFxSelectionSetReactor pReactor)
pure virtual

Description:

◆ Clear()

virtual void CFxSelectionSet::Clear ( )
pure virtual

Description:

◆ CreateIterator()

virtual CFxIterator<CFxSelectionData>* CFxSelectionSet::CreateIterator ( ) const
pure virtual

Description:

◆ GetClassesFound()

virtual void CFxSelectionSet::GetClassesFound ( CLASS_VECTOR classes,
SIZE_T_VECTOR objects 
) const
pure virtual

Description:

◆ GetCommonBaseClass()

virtual const OdRxClass* CFxSelectionSet::GetCommonBaseClass ( ) const
pure virtual

Description:

◆ GetCommonBasePEClass()

virtual const OdRxClass* CFxSelectionSet::GetCommonBasePEClass ( ) const
pure virtual

Descritpion: Get common base class in Properties hierarchy (PropertyBasePE).

◆ GetFxDatabase()

virtual CFxDatabase* CFxSelectionSet::GetFxDatabase ( )
pure virtual

Description:

◆ GetId()

virtual const OdDbObjectId& CFxSelectionSet::GetId ( size_t  index) const
pure virtual

Description:

◆ GetLength()

virtual size_t CFxSelectionSet::GetLength ( ) const
pure virtual

Description:

◆ GetNTHX()

virtual int CFxSelectionSet::GetNTHX ( int  index,
fdt_resbufW **  data 
) const
pure virtual

Description:

◆ GetNumber()

virtual size_t CFxSelectionSet::GetNumber ( ) const
pure virtual

Description: Returns the number of selection set. This number is unique for entire application instance.

◆ GetObjectsByClass()

virtual void CFxSelectionSet::GetObjectsByClass ( const OdRxClass pClass,
OdDbObjectIdArray objects 
) const
pure virtual

Description:

◆ GetTotalSubents()

virtual size_t CFxSelectionSet::GetTotalSubents ( ) const
pure virtual

Description: Returns the number of selected entities plus number of separat selected Subentities

◆ IsEmpty()

virtual bool CFxSelectionSet::IsEmpty ( ) const
pure virtual

◆ IsHighlightEnabled()

virtual bool CFxSelectionSet::IsHighlightEnabled ( ) const
pure virtual

Description: Returns true if entities in this selection set are highlighted.

◆ IsMember() [1/2]

virtual bool CFxSelectionSet::IsMember ( const OdDbFullSubentPath path) const
pure virtual

Description:

◆ IsMember() [2/2]

virtual bool CFxSelectionSet::IsMember ( const OdDbObjectId id) const
pure virtual

Description:

◆ Merge() [1/2]

virtual MergeResult CFxSelectionSet::Merge ( const CFxSelectionSet pSS,
MergeOptions  options 
)
pure virtual

Description:

◆ Merge() [2/2]

virtual MergeResult CFxSelectionSet::Merge ( const OdDbObjectIdArray idsToMerge,
MergeOptions  options 
)
pure virtual

Description:

◆ Remove()

virtual bool CFxSelectionSet::Remove ( const OdDbObjectId objId)
pure virtual

Description:

◆ RemoveReactor()

virtual void CFxSelectionSet::RemoveReactor ( CFxSelectionSetReactor pReactor)
pure virtual

Description:

◆ SelectAll()

static CFxSelectionSet* CFxSelectionSet::SelectAll ( CFxDocument pDoc)
static

Description:

◆ SelectByBox()

static CFxSelectionSet* CFxSelectionSet::SelectByBox ( const OdGePoint3d firstPointWCS,
const OdGePoint3d secondPointWCS,
CFxView pView 
)
static

Description:

◆ SelectByCrossingPolygon()

static CFxSelectionSet* CFxSelectionSet::SelectByCrossingPolygon ( const OdGePoint3dArray pointsWCS,
CFxView pView 
)
static

Description:

◆ SelectByCrossingWindow()

static CFxSelectionSet* CFxSelectionSet::SelectByCrossingWindow ( const OdGePoint3d firstPointWCS,
const OdGePoint3d secondPointWCS,
CFxView pView 
)
static

Description:

◆ SelectByFence()

static CFxSelectionSet* CFxSelectionSet::SelectByFence ( const OdGePoint3dArray pointsWCS,
CFxView pView 
)
static

Description:

◆ SelectByPoint()

static CFxSelectionSet* CFxSelectionSet::SelectByPoint ( const OdGePoint3d pointWCS,
double  pickboxEYE,
CFxView pView 
)
static

Description:

◆ SelectByPolygon()

static CFxSelectionSet* CFxSelectionSet::SelectByPolygon ( const OdGePoint3dArray pointsWCS,
CFxView pView 
)
static

Description:

◆ SelectByView()

static CFxSelectionSet* CFxSelectionSet::SelectByView ( CFxView pView)
static

◆ SelectByWindow()

static CFxSelectionSet* CFxSelectionSet::SelectByWindow ( const OdGePoint3d firstPointWCS,
const OdGePoint3d secondPointWCS,
CFxView pView 
)
static

Description:

◆ SelectForHatch()

static CFxSelectionSet* CFxSelectionSet::SelectForHatch ( CFxView pView,
const OdGePoint3d pickPoint,
OdGeExtents3d extents 
)
static

◆ SelectGroup()

static CFxSelectionSet* CFxSelectionSet::SelectGroup ( OdDbObjectId  idGroup)
static

Description:

◆ SelectLast()

static CFxSelectionSet* CFxSelectionSet::SelectLast ( CFxDocument pDoc)
static

Description:

◆ SelectPrevious()

static CFxSelectionSet* CFxSelectionSet::SelectPrevious ( CFxDocument pDoc)
static

Description:

◆ SetHighlightEnabled()

virtual void CFxSelectionSet::SetHighlightEnabled ( bool  enable)
pure virtual

Description: Set highlighting of entities in this selection set to enable value.

◆ SubentAdd()

virtual bool CFxSelectionSet::SubentAdd ( const OdDbFullSubentPath path)
pure virtual

Description:

◆ SubentGetId()

virtual const OdDbFullSubentPath& CFxSelectionSet::SubentGetId ( size_t  index,
size_t  subentIndex 
) const
pure virtual

Description:

◆ SubentGetLength()

virtual size_t CFxSelectionSet::SubentGetLength ( size_t  index) const
pure virtual

Description:

◆ SubentRemove()

virtual bool CFxSelectionSet::SubentRemove ( const OdDbFullSubentPath path)
pure virtual

Description:


The documentation for this class was generated from the following file: