CFx SDK Documentation  2022 SP0
FxSolidShape.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 
6 {
7 public:
9  virtual OdGePoint3d position() const = 0;
10  virtual OdResult setPosition( OdGePoint3d& pt ) = 0;
11  virtual bool update() = 0;
12  virtual OdGeMatrix3d transform() const = 0;
13 };
15 
17 {
18 public:
20  virtual double getLength( ) const = 0;
21  virtual OdResult setLength( double len ) = 0;
22  virtual double getWidth( ) const = 0;
23  virtual OdResult setWidth( double width ) = 0;
24  virtual double getHeight( ) const = 0;
25  virtual OdResult setHeight( double height ) = 0;
26 };
28 
30 {
31 public:
33  virtual double height() const = 0;
34  virtual double radius() const = 0;
35  virtual double majorRadius() const = 0;
36  virtual double minorRadius() const = 0;
37  virtual OdResult setHeight(double dHeight) = 0;
38  virtual OdResult setRadius(double dRadius) = 0;
39  virtual OdResult setMajorRadius(double dMajorRadius) = 0;
40  virtual OdResult setMinorRadius(double dMinorRadius) = 0;
41  virtual bool isCylindrical() const = 0;
42  virtual bool isElliptical() const = 0;
43 
44 };
46 
48 {
49 public:
51  virtual double height() const = 0;
52  virtual double radius() const = 0;
53  virtual int sides() const = 0;
54  virtual double topRadius() const = 0;
55  virtual OdResult setSides(int iSides) = 0;
56  virtual OdResult setHeight(double dHeight) = 0;
57  virtual OdResult setTopRadius(double dTopRadius) = 0;
58  virtual OdResult setRadius(double dRadius) = 0;
59 };
61 
63 {
64 public:
66  virtual double radius() const = 0;
67  virtual OdResult setRadius(double dRadius) = 0;
68 };
70 
72 {
73 public:
75  virtual double majorRadius() const = 0;
76  virtual double minorRadius() const = 0;
77  virtual OdResult setMajorRadius(double dMajorRadius) = 0;
78  virtual OdResult setMinorRadius(double dMinorRadius) = 0;
79 };
81 
83 {
84 public:
86  virtual double getLength( ) const = 0;
87  virtual OdResult setLength( double len ) = 0;
88  virtual double getWidth( ) const = 0;
89  virtual OdResult setWidth( double width ) = 0;
90  virtual double getHeight( ) const = 0;
91  virtual OdResult setHeight( double height ) = 0;
92 };
94 
96 {
97 public:
99  virtual double height() const = 0;
100  virtual OdResult setHeight(double dHeight) = 0;
101  virtual double baseMinorRadius() const = 0;
102  virtual OdResult setBaseMinorRadius(double dMinorRadius) = 0;
103  virtual double baseMajorRadius() const = 0;
104  virtual OdResult setBaseMajorRadius(double dMajorRadius, bool bElliptical = false) = 0;
105  virtual double topRadius() const = 0;
106  virtual OdResult setTopRadius(double dTopMajorRad, bool bElliptical = false) = 0;
107 };
109 
111 {
112 public:
114  virtual double height() = 0;
115  virtual OdResult setHeight( double dHeight ) = 0;
116  virtual double taperAngle() = 0;
117  virtual OdResult setTaperAngle( double dTaperAngle ) = 0;
118  virtual OdGeVector3d direction() = 0;
119  virtual OdDbEntityPtr sweepEntity() = 0;
120  virtual OdResult getSweepOptions(OdDbSweepOptions& sweepOptions) = 0;
121 };
123 
125 {
126 public:
128  virtual double revolveAngle() = 0;
129  virtual OdResult setRevolveAngle( double angle ) = 0;
130  virtual OdGePoint3d axisPoint() = 0;
131  virtual OdResult setAxisPoint( OdGePoint3d& axisPt ) = 0;
132  virtual OdGeVector3d direction() = 0;
133  virtual OdResult setDirection( OdGeVector3d& direction ) = 0;
134  virtual double startAngle() = 0;
135  virtual void setStartAngle( double angle ) = 0;
136  virtual OdDbEntityPtr sweepEntity() = 0;
137  virtual void setSweepEntity( OdDbEntityPtr pEntity ) = 0;
138  virtual OdResult getRevolveOptions ( OdDbRevolveOptions& revOptions ) = 0;
139 };
141 
143 {
144 public:
146  virtual double profileRotation() = 0;
147  virtual OdResult setProfileRotation( double angle ) = 0;
148  virtual double twist() = 0;
149  virtual OdResult setTwist( double dTwist ) = 0;
150  virtual double scale() = 0;
151  virtual OdResult setScale( double dScale ) = 0;
152  virtual double length() = 0;
153 
154  virtual OdDbEntityPtr sweepEntity() = 0;
155  virtual OdDbEntityPtr pathEntity() = 0;
156  virtual OdResult setPathEntity(OdDbEntity* pPathEnt) = 0;
157  virtual OdResult setSweepEntity(OdDbEntity* pSweepEnt) = 0;
158 
159  virtual OdGeVector3d direction() = 0;
160  virtual OdResult setDirection(OdGeVector3d const & v) = 0;
161  virtual OdResult getSweepOptions(OdDbSweepOptions& sweepOptions) = 0;
162 };
164 
166 {
167 public:
169  virtual int crossSectionsCount() = 0;
170  virtual int surfaceNormalsType() = 0;
171  virtual OdResult setSurfaceNormalsType( int iType, bool bRule = false ) = 0;
172  virtual double startDraftAngle() = 0;
173  virtual OdResult setStartDraftAngle( double startDraftAngle ) = 0;
174  virtual double endDraftAngle() = 0;
175  virtual OdResult setEndDraftAngle( double endDraftAngle ) = 0;
176  virtual double startMagnitude() = 0;
177  virtual OdResult setStartMagnitude( double startMagnitude ) = 0;
178  virtual double endMagnitude() = 0;
179  virtual OdResult setEndMagnitude( double endMagnitude ) = 0;
180  virtual bool isClosed() = 0;
181  virtual OdResult setClosed( bool closed ) = 0;
182  virtual OdDbEntityPtr getCrossSection(int iNum) = 0;
183  virtual int numGuideCurves() = 0;
184  virtual int numCrossSections() = 0;
185  virtual OdDbEntityPtr getGuideCurve(int iNum) = 0;
186  virtual OdResult loftOptions( OdDbLoftOptions& loftOptions) = 0;
187  virtual OdDbEntityPtr getPath() = 0;
188 };
190 
192 {
193 public:
195  virtual CFx3dSolidShapePtr getShape( const OdDb3dSolidPtr pSolid, bool* bCompositSolid = NULL ) = 0;
196 };
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< CFxTorus > CFxTorusPtr
Definition: FxSolidShape.h:80
OdSmartPtr< CFxSphere > CFxSpherePtr
Definition: FxSolidShape.h:69
OdSmartPtr< CFxBox > CFxBoxPtr
Definition: FxSolidShape.h:27
OdSmartPtr< CFxCylinder > CFxCylinderPtr
Definition: FxSolidShape.h:45
OdSmartPtr< CFx3dSolidShapePE > CFx3dSolidShapePEPtr
Definition: FxSolidShape.h:197
OdSmartPtr< CFxPyramid > CFxPyramidPtr
Definition: FxSolidShape.h:60
OdSmartPtr< CFxExtrusion > CFxExtrusionPtr
Definition: FxSolidShape.h:122
OdSmartPtr< CFxRevolve > CFxRevolvePtr
Definition: FxSolidShape.h:140
OdSmartPtr< CFxWedge > CFxWedgePtr
Definition: FxSolidShape.h:93
OdSmartPtr< CFxLoft > CFxLoftPtr
Definition: FxSolidShape.h:189
OdSmartPtr< CFxSweep > CFxSweepPtr
Definition: FxSolidShape.h:163
OdSmartPtr< CFxCone > CFxConePtr
Definition: FxSolidShape.h:108
OdSmartPtr< CFx3dSolidShape > CFx3dSolidShapePtr
Definition: FxSolidShape.h:14
#define NULL
Definition: GsProperties.h:177
OdResult
Definition: OdResult.h:29
virtual OdGePoint3d position() const =0
virtual bool update()=0
virtual OdResult setPosition(OdGePoint3d &pt)=0
ODRX_DECLARE_MEMBERS(CFx3dSolidShape)
virtual OdGeMatrix3d transform() const =0
ODRX_DECLARE_MEMBERS(CFx3dSolidShapePE)
virtual CFx3dSolidShapePtr getShape(const OdDb3dSolidPtr pSolid, bool *bCompositSolid=NULL)=0
virtual double getWidth() const =0
virtual OdResult setHeight(double height)=0
virtual OdResult setLength(double len)=0
virtual double getHeight() const =0
virtual double getLength() const =0
ODRX_DECLARE_MEMBERS(CFxBox)
virtual OdResult setWidth(double width)=0
virtual OdResult setTopRadius(double dTopMajorRad, bool bElliptical=false)=0
virtual OdResult setBaseMajorRadius(double dMajorRadius, bool bElliptical=false)=0
ODRX_DECLARE_MEMBERS(CFxCone)
virtual double topRadius() const =0
virtual double baseMajorRadius() const =0
virtual double height() const =0
virtual OdResult setHeight(double dHeight)=0
virtual double baseMinorRadius() const =0
virtual OdResult setBaseMinorRadius(double dMinorRadius)=0
ODRX_DECLARE_MEMBERS(CFxCylinder)
virtual bool isCylindrical() const =0
virtual double height() const =0
virtual bool isElliptical() const =0
virtual double minorRadius() const =0
virtual OdResult setMajorRadius(double dMajorRadius)=0
virtual OdResult setMinorRadius(double dMinorRadius)=0
virtual double radius() const =0
virtual OdResult setHeight(double dHeight)=0
virtual OdResult setRadius(double dRadius)=0
virtual double majorRadius() const =0
virtual double taperAngle()=0
virtual double height()=0
virtual OdDbEntityPtr sweepEntity()=0
virtual OdResult setHeight(double dHeight)=0
virtual OdResult getSweepOptions(OdDbSweepOptions &sweepOptions)=0
virtual OdGeVector3d direction()=0
ODRX_DECLARE_MEMBERS(CFxExtrusion)
virtual OdResult setTaperAngle(double dTaperAngle)=0
virtual bool isClosed()=0
virtual OdDbEntityPtr getPath()=0
virtual double endDraftAngle()=0
virtual OdDbEntityPtr getGuideCurve(int iNum)=0
virtual OdResult loftOptions(OdDbLoftOptions &loftOptions)=0
virtual double startMagnitude()=0
virtual double endMagnitude()=0
ODRX_DECLARE_MEMBERS(CFxLoft)
virtual OdResult setSurfaceNormalsType(int iType, bool bRule=false)=0
virtual int surfaceNormalsType()=0
virtual OdResult setStartMagnitude(double startMagnitude)=0
virtual OdResult setEndDraftAngle(double endDraftAngle)=0
virtual double startDraftAngle()=0
virtual OdResult setStartDraftAngle(double startDraftAngle)=0
virtual OdResult setEndMagnitude(double endMagnitude)=0
virtual int numCrossSections()=0
virtual int numGuideCurves()=0
virtual OdResult setClosed(bool closed)=0
virtual OdDbEntityPtr getCrossSection(int iNum)=0
virtual int crossSectionsCount()=0
virtual double topRadius() const =0
virtual double radius() const =0
virtual OdResult setHeight(double dHeight)=0
virtual double height() const =0
virtual int sides() const =0
virtual OdResult setTopRadius(double dTopRadius)=0
virtual OdResult setRadius(double dRadius)=0
virtual OdResult setSides(int iSides)=0
ODRX_DECLARE_MEMBERS(CFxPyramid)
virtual OdDbEntityPtr sweepEntity()=0
virtual OdGePoint3d axisPoint()=0
virtual void setSweepEntity(OdDbEntityPtr pEntity)=0
ODRX_DECLARE_MEMBERS(CFxRevolve)
virtual void setStartAngle(double angle)=0
virtual OdGeVector3d direction()=0
virtual double revolveAngle()=0
virtual double startAngle()=0
virtual OdResult setRevolveAngle(double angle)=0
virtual OdResult setDirection(OdGeVector3d &direction)=0
virtual OdResult getRevolveOptions(OdDbRevolveOptions &revOptions)=0
virtual OdResult setAxisPoint(OdGePoint3d &axisPt)=0
virtual OdResult setRadius(double dRadius)=0
virtual double radius() const =0
ODRX_DECLARE_MEMBERS(CFxSphere)
virtual OdResult setPathEntity(OdDbEntity *pPathEnt)=0
virtual OdResult getSweepOptions(OdDbSweepOptions &sweepOptions)=0
virtual OdResult setTwist(double dTwist)=0
virtual OdDbEntityPtr sweepEntity()=0
virtual double length()=0
virtual OdResult setDirection(OdGeVector3d const &v)=0
virtual double profileRotation()=0
virtual OdResult setSweepEntity(OdDbEntity *pSweepEnt)=0
virtual double twist()=0
ODRX_DECLARE_MEMBERS(CFxSweep)
virtual double scale()=0
virtual OdResult setProfileRotation(double angle)=0
virtual OdGeVector3d direction()=0
virtual OdResult setScale(double dScale)=0
virtual OdDbEntityPtr pathEntity()=0
ODRX_DECLARE_MEMBERS(CFxTorus)
virtual double majorRadius() const =0
virtual OdResult setMajorRadius(double dMajorRadius)=0
virtual OdResult setMinorRadius(double dMinorRadius)=0
virtual double minorRadius() const =0
virtual double getLength() const =0
virtual OdResult setWidth(double width)=0
virtual double getHeight() const =0
virtual OdResult setLength(double len)=0
ODRX_DECLARE_MEMBERS(CFxWedge)
virtual OdResult setHeight(double height)=0
virtual double getWidth() const =0
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
const GLfloat * v
Definition: gles2_ext.h:315
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110