CFx SDK Documentation  2020SP3
Macros
ModelerMarkers.h File Reference

Go to the source code of this file.

Macros

#define MODELERMARKERS_H   /*!DOM*/
 
#define kSubentTypeStep   4
 
#define kFirstFaceMarker   (OdDb::kFaceSubentType + kSubentTypeStep)
 
#define kFirstEdgeMarker   (OdDb::kEdgeSubentType + kSubentTypeStep)
 
#define kFirstVertexMarker   (OdDb::kVertexSubentType + kSubentTypeStep)
 
#define getFaceIndex(gsMarker)   (((gsMarker) - OdDb::kFaceSubentType) / kSubentTypeStep)
 
#define getEdgeIndex(gsMarker)   (((gsMarker) - OdDb::kEdgeSubentType) / kSubentTypeStep)
 
#define getVertexIndex(gsMarker)   (((gsMarker) - OdDb::kVertexSubentType) / kSubentTypeStep)
 
#define getTypedIndex(gsMarker, type)   (((gsMarker) - (type)) / kSubentTypeStep)
 
#define getFaceMarker(nIndex)   ((nIndex) * kSubentTypeStep + OdDb::kFaceSubentType)
 
#define getEdgeMarker(nIndex)   ((nIndex) * kSubentTypeStep + OdDb::kEdgeSubentType)
 
#define getVertexMarker(nIndex)   ((nIndex) * kSubentTypeStep + OdDb::kVertexSubentType)
 
#define getTypedMarker(nIndex, type)   ((nIndex) * kSubentTypeStep + (type))
 
#define isIndexValid(nIndex)   ((nIndex)>0)
 
#define isMarkerInvalid(gsMarker)   ((gsMarker) < kFirstFaceMarker || 0 == (gsMarker)%kSubentTypeStep)
 
#define isValidFaceMarker(gsMarker)   ((gsMarker) >= kFirstFaceMarker && ((((gsMarker) - kFirstFaceMarker) % kSubentTypeStep) == 0))
 
#define isValidEdgeMarker(gsMarker)   ((gsMarker) >= kFirstEdgeMarker && ((((gsMarker) - kFirstEdgeMarker) % kSubentTypeStep) == 0))
 
#define isValidVertexMarker(gsMarker)   ((gsMarker) >= kFirstVertexMarker && ((((gsMarker) - kFirstVertexMarker) % kSubentTypeStep) == 0))
 

Macro Definition Documentation

◆ getEdgeIndex

#define getEdgeIndex (   gsMarker)    (((gsMarker) - OdDb::kEdgeSubentType) / kSubentTypeStep)

Definition at line 33 of file ModelerMarkers.h.

◆ getEdgeMarker

#define getEdgeMarker (   nIndex)    ((nIndex) * kSubentTypeStep + OdDb::kEdgeSubentType)

Definition at line 39 of file ModelerMarkers.h.

◆ getFaceIndex

#define getFaceIndex (   gsMarker)    (((gsMarker) - OdDb::kFaceSubentType) / kSubentTypeStep)

Definition at line 32 of file ModelerMarkers.h.

◆ getFaceMarker

#define getFaceMarker (   nIndex)    ((nIndex) * kSubentTypeStep + OdDb::kFaceSubentType)

Definition at line 38 of file ModelerMarkers.h.

◆ getTypedIndex

#define getTypedIndex (   gsMarker,
  type 
)    (((gsMarker) - (type)) / kSubentTypeStep)

Definition at line 36 of file ModelerMarkers.h.

◆ getTypedMarker

#define getTypedMarker (   nIndex,
  type 
)    ((nIndex) * kSubentTypeStep + (type))

Definition at line 42 of file ModelerMarkers.h.

◆ getVertexIndex

#define getVertexIndex (   gsMarker)    (((gsMarker) - OdDb::kVertexSubentType) / kSubentTypeStep)

Definition at line 34 of file ModelerMarkers.h.

◆ getVertexMarker

#define getVertexMarker (   nIndex)    ((nIndex) * kSubentTypeStep + OdDb::kVertexSubentType)

Definition at line 40 of file ModelerMarkers.h.

◆ isIndexValid

#define isIndexValid (   nIndex)    ((nIndex)>0)

Definition at line 44 of file ModelerMarkers.h.

◆ isMarkerInvalid

#define isMarkerInvalid (   gsMarker)    ((gsMarker) < kFirstFaceMarker || 0 == (gsMarker)%kSubentTypeStep)

Definition at line 45 of file ModelerMarkers.h.

◆ isValidEdgeMarker

#define isValidEdgeMarker (   gsMarker)    ((gsMarker) >= kFirstEdgeMarker && ((((gsMarker) - kFirstEdgeMarker) % kSubentTypeStep) == 0))

Definition at line 48 of file ModelerMarkers.h.

◆ isValidFaceMarker

#define isValidFaceMarker (   gsMarker)    ((gsMarker) >= kFirstFaceMarker && ((((gsMarker) - kFirstFaceMarker) % kSubentTypeStep) == 0))

Definition at line 47 of file ModelerMarkers.h.

◆ isValidVertexMarker

#define isValidVertexMarker (   gsMarker)    ((gsMarker) >= kFirstVertexMarker && ((((gsMarker) - kFirstVertexMarker) % kSubentTypeStep) == 0))

Definition at line 49 of file ModelerMarkers.h.

◆ kFirstEdgeMarker

#define kFirstEdgeMarker   (OdDb::kEdgeSubentType + kSubentTypeStep)

Definition at line 29 of file ModelerMarkers.h.

◆ kFirstFaceMarker

#define kFirstFaceMarker   (OdDb::kFaceSubentType + kSubentTypeStep)

Definition at line 28 of file ModelerMarkers.h.

◆ kFirstVertexMarker

#define kFirstVertexMarker   (OdDb::kVertexSubentType + kSubentTypeStep)

Definition at line 30 of file ModelerMarkers.h.

◆ kSubentTypeStep

#define kSubentTypeStep   4

Definition at line 27 of file ModelerMarkers.h.

◆ MODELERMARKERS_H

#define MODELERMARKERS_H   /*!DOM*/

Definition at line 25 of file ModelerMarkers.h.