CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
OdGiPlineContourCalc< VectClass, SimplClass > Class Template Reference

#include <GiPlineContour.h>

Inheritance diagram for OdGiPlineContourCalc< VectClass, SimplClass >:
OdGiPlineContourCalcEmptyInheritance OdGiPlineContourCalcNonSimplifierInheritance OdGiPlineContourCalcSimplifierInterface

Classes

class  PlineCtrCalcNode
 

Public Member Functions

 OdGiPlineContourCalc ()
 
void enablePlineContoursCalc (bool bSet)
 
bool plineContoursCalcEnabled () const
 
void plineCalcStarted ()
 
void plineCalcEnded ()
 
virtual void pline (const OdGiPolyline &polyline, OdUInt32 fromIndex=0, OdUInt32 numSegs=0)
 
bool hasPlineStarted () const
 
virtual void plineCalcShellWires (OdInt32 faceListSize, const OdInt32 *faceList, const OdGiEdgeData *pEdgeData=0, const OdGiFaceData *pFaceData=0)
 
void enablePlineCalcSrips (bool bSet)
 
bool plineCalcStripsEnabled () const
 
bool plineCalcDroppingState () const
 
virtual void dropPlineCalcShellWires (bool bStrips)
 
- Public Member Functions inherited from OdGiPlineContourCalcEmptyInheritance
void pline (const OdGiPolyline &, OdUInt32=0, OdUInt32=0)
 
- Public Member Functions inherited from OdGiPlineContourCalcNonSimplifierInheritance
 OdGiPlineContourCalcNonSimplifierInheritance ()
 
virtual void plineCalcShellWires (OdInt32 faceListSize, const OdInt32 *faceList, const OdGiEdgeData *pEdgeData=0, const OdGiFaceData *pFaceData=0)=0
 
virtual void dropPlineCalcShellWires (bool bStrips)=0
 

Protected Types

enum  PlineCtrCalcFlags {
  kPlineCtrCalcEnabled = (1 << 0) , kPlineCtrCalcStrip = (1 << 1) , kPlineCtrCalcInPrim = (1 << 2) , kPlineCtrCalcHasGeo = (1 << 3) ,
  kPlineCtrCalcPlDrop = (1 << 4)
}
 
typedef std::pair< OdGePoint3d, OdGePoint3dEdgePointsPair
 
typedef std::pair< OdInt32, OdInt32EdgePointsKey
 
typedef std::set< PlineCtrCalcNodePlineCtrCalcMap
 

Protected Member Functions

void filterPlineCalcMap (const OdGePoint3d &p1, const OdGePoint3d &p2, OdGsMarker gsMarker)
 
OdGsMarker buildPlineCalcStrip ()
 
- Protected Member Functions inherited from OdGiPlineContourCalcNonSimplifierInheritance
void setPlineCalcInterface (OdGiPlineContourCalcSimplifierInterface *)
 
void setPlineCalcSimplifier (OdGiGeometrySimplifier *pSimplifier)
 
void plineCalcRedirectGenerateShellWires (OdInt32 faceListSize, const OdInt32 *faceList, const OdGiEdgeData *pEdgeData, const OdGiFaceData *pFaceData)
 
OdGiGeometrySimplifierplineCalcSimplifier ()
 

Protected Attributes

OdUInt32 m_nPlineCtrCalcFlags
 
PlineCtrCalcMap m_plineCtrCalcMap
 
OdGePoint3dArray m_plineCtrCalcStrip
 

Detailed Description

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
class OdGiPlineContourCalc< VectClass, SimplClass >

This is helper class which can be used to compute pline primitive contours on top of geometry simplifier. <group OdGi_Classes>

Definition at line 153 of file GiPlineContour.h.

Member Typedef Documentation

◆ EdgePointsKey

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
typedef std::pair<OdInt32, OdInt32> OdGiPlineContourCalc< VectClass, SimplClass >::EdgePointsKey
protected

Definition at line 167 of file GiPlineContour.h.

◆ EdgePointsPair

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
typedef std::pair<OdGePoint3d, OdGePoint3d> OdGiPlineContourCalc< VectClass, SimplClass >::EdgePointsPair
protected

Definition at line 166 of file GiPlineContour.h.

◆ PlineCtrCalcMap

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
typedef std::set<PlineCtrCalcNode> OdGiPlineContourCalc< VectClass, SimplClass >::PlineCtrCalcMap
protected

Definition at line 195 of file GiPlineContour.h.

Member Enumeration Documentation

◆ PlineCtrCalcFlags

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
enum OdGiPlineContourCalc::PlineCtrCalcFlags
protected
Enumerator
kPlineCtrCalcEnabled 
kPlineCtrCalcStrip 
kPlineCtrCalcInPrim 
kPlineCtrCalcHasGeo 
kPlineCtrCalcPlDrop 

Definition at line 156 of file GiPlineContour.h.

Constructor & Destructor Documentation

◆ OdGiPlineContourCalc()

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
OdGiPlineContourCalc< VectClass, SimplClass >::OdGiPlineContourCalc ( )
inline

Definition at line 245 of file GiPlineContour.h.

Member Function Documentation

◆ buildPlineCalcStrip()

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
OdGsMarker OdGiPlineContourCalc< VectClass, SimplClass >::buildPlineCalcStrip ( )
inlineprotected

Definition at line 208 of file GiPlineContour.h.

◆ dropPlineCalcShellWires()

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
virtual void OdGiPlineContourCalc< VectClass, SimplClass >::dropPlineCalcShellWires ( bool  bStrips)
inlinevirtual

Drop calculated pline primitive contours onto vectorizer.

Parameters
bStrips[in] Output pline contours as line strips or as separate line segments.

Implements OdGiPlineContourCalcSimplifierInterface.

Definition at line 362 of file GiPlineContour.h.

◆ enablePlineCalcSrips()

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
void OdGiPlineContourCalc< VectClass, SimplClass >::enablePlineCalcSrips ( bool  bSet)
inline

Enables or disables output line strips calculation.

Parameters
bSet[in] New state for line strips calculation.

Definition at line 337 of file GiPlineContour.h.

◆ enablePlineContoursCalc()

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
void OdGiPlineContourCalc< VectClass, SimplClass >::enablePlineContoursCalc ( bool  bSet)
inline

Enables or disable pline contours calculation.

Parameters
bSet[in] New pline calculation state.

Definition at line 252 of file GiPlineContour.h.

◆ filterPlineCalcMap()

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
void OdGiPlineContourCalc< VectClass, SimplClass >::filterPlineCalcMap ( const OdGePoint3d p1,
const OdGePoint3d p2,
OdGsMarker  gsMarker 
)
inlineprotected

Definition at line 199 of file GiPlineContour.h.

◆ hasPlineStarted()

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
bool OdGiPlineContourCalc< VectClass, SimplClass >::hasPlineStarted ( ) const
inline

Returns true in case if pline primitive calculations started.

Definition at line 298 of file GiPlineContour.h.

◆ pline()

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
virtual void OdGiPlineContourCalc< VectClass, SimplClass >::pline ( const OdGiPolyline polyline,
OdUInt32  fromIndex = 0,
OdUInt32  numSegs = 0 
)
inlinevirtual

This override will be used in case if direct inheritance from vectorizer is provided to detect pline primitive processing.

Parameters
polyline[in] Polyline to process.
fromIndex[in] Index of the first segment to be processed.
numSegs[in] Number of segments to be processed.

Definition at line 288 of file GiPlineContour.h.

◆ plineCalcDroppingState()

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
bool OdGiPlineContourCalc< VectClass, SimplClass >::plineCalcDroppingState ( ) const
inline

Returns current polyline calculation results dropping state.

Definition at line 353 of file GiPlineContour.h.

◆ plineCalcEnded()

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
void OdGiPlineContourCalc< VectClass, SimplClass >::plineCalcEnded ( )
inline

Use this call at end of pline processing in case if direct inheritance from vectorizer non provided.

Definition at line 272 of file GiPlineContour.h.

◆ plineCalcShellWires()

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
virtual void OdGiPlineContourCalc< VectClass, SimplClass >::plineCalcShellWires ( OdInt32  faceListSize,
const OdInt32 faceList,
const OdGiEdgeData pEdgeData = 0,
const OdGiFaceData pFaceData = 0 
)
inlinevirtual

Add pline primitive wires into OdGiPlineContourCalc map.

Parameters
faceListSize[in] Number of entries in faceList.
faceList[in] List of numbers that define the faces in the shell.
pEdgeData[in] Pointer to additional edge data.
pFaceData[in] Pointer to additional face data.

Implements OdGiPlineContourCalcSimplifierInterface.

Definition at line 310 of file GiPlineContour.h.

◆ plineCalcStarted()

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
void OdGiPlineContourCalc< VectClass, SimplClass >::plineCalcStarted ( )
inline

Use this call at start of pline processing in case if direct inheritance from vectorizer non provided.

Definition at line 262 of file GiPlineContour.h.

◆ plineCalcStripsEnabled()

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
bool OdGiPlineContourCalc< VectClass, SimplClass >::plineCalcStripsEnabled ( ) const
inline

Returns current state of line strips calculation.

Definition at line 345 of file GiPlineContour.h.

◆ plineContoursCalcEnabled()

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
bool OdGiPlineContourCalc< VectClass, SimplClass >::plineContoursCalcEnabled ( ) const
inline

Returns true in case if pline contours calculation enabled.

Definition at line 257 of file GiPlineContour.h.

Member Data Documentation

◆ m_nPlineCtrCalcFlags

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
OdUInt32 OdGiPlineContourCalc< VectClass, SimplClass >::m_nPlineCtrCalcFlags
protected

Definition at line 165 of file GiPlineContour.h.

◆ m_plineCtrCalcMap

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
PlineCtrCalcMap OdGiPlineContourCalc< VectClass, SimplClass >::m_plineCtrCalcMap
protected

Definition at line 196 of file GiPlineContour.h.

◆ m_plineCtrCalcStrip

template<typename VectClass = OdGiPlineContourCalcEmptyInheritance, typename SimplClass = OdGiPlineContourCalcNonSimplifierInheritance>
OdGePoint3dArray OdGiPlineContourCalc< VectClass, SimplClass >::m_plineCtrCalcStrip
protected

Definition at line 197 of file GiPlineContour.h.


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