24#ifndef _ODGIMODELERDUMMYGEOM_INCLUDED_
25#define _ODGIMODELERDUMMYGEOM_INCLUDED_
40template<
class T,
class DRAW,
class WR,
class WRA>
class OdGeomGrabber :
public T
48 return m_curSelMarker;
54 : T(pVd, pVd.geometry(), pVd.subEntityTraits())
63 WR *pWire = wires.append();
65 pWire->color = T::subEntityTraits().trueColor();
72 T::circle(center, radius, normal);
78 T::circle(p1, p2, p3);
88 appendWire()->circularArc(center, radius, normal, startVector, sweepAngle);
89 T::circularArc(center, radius, normal, startVector, sweepAngle, arcType);
98 T::circularArc(start, point, end, arcType);
106 appendWire()->polyline(nbPoints, pVertexList);
107 T::polyline(nbPoints, pVertexList, pNormal, lBaseSubEntMarker);
122template<
class T,
class DRAW,
class WR,
class WRA>
class OdShellGrabber :
public T
130 OdShellGrabber(WRA &pW, DRAW &pVd) : T(pVd, pVd.geometry(), pVd.subEntityTraits())
148 WR *pWire = wires.append();
149 pWire->selMarker = m_curSelMarker;
150 pWire->color = T::subEntityTraits().trueColor();
@ kOdGiHideOrShadeCommand
#define getFaceIndex(gsMarker)
virtual void nurbs(const OdGeNurbCurve3d &nurbs)
OdGeomGrabber(WRA &pW, DRAW &pVd)
virtual void circle(const OdGePoint3d ¢er, double radius, const OdGeVector3d &normal)
virtual void circularArc(const OdGePoint3d ¢er, double radius, const OdGeVector3d &normal, const OdGeVector3d &startVector, double sweepAngle, OdGiArcType arcType=kOdGiArcSimple)
virtual OdGsMarker getCurSelMarker() const
virtual void circularArc(const OdGePoint3d &start, const OdGePoint3d &point, const OdGePoint3d &end, OdGiArcType arcType=kOdGiArcSimple)
virtual void polyline(OdInt32 nbPoints, const OdGePoint3d *pVertexList, const OdGeVector3d *pNormal=NULL, OdGsMarker lBaseSubEntMarker=-1)
virtual WR * appendWire()
virtual void circle(const OdGePoint3d &p1, const OdGePoint3d &p2, const OdGePoint3d &p3)
virtual void setSelectionMarker(OdGsMarker n)
virtual void shell(OdInt32 numVertices, const OdGePoint3d *vertexList, OdInt32 faceListSize, const OdInt32 *faceList, const OdGiEdgeData *pEdgeData=0, const OdGiFaceData *pFaceData=0, const OdGiVertexData *pVertexData=0)
OdShellGrabber(WRA &pW, DRAW &pVd)
virtual OdGiRegenType regenType() const
virtual void setSelectionMarker(OdGsMarker n)