CFx SDK Documentation  2020SP3
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 };
CFxRevolve::revolveAngle
virtual double revolveAngle()=0
OdResult
OdResult
Definition: OdResult.h:29
CFxSweep::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFxSweep)
CFxRevolve::direction
virtual OdGeVector3d direction()=0
CFxSweep::setSweepEntity
virtual OdResult setSweepEntity(OdDbEntity *pSweepEnt)=0
OdGeVector3d
Definition: GeVector3d.h:54
NULL
#define NULL
Definition: GsProperties.h:177
CFxExtrusion::height
virtual double height()=0
CFxSphere::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFxSphere)
CFxSweep::profileRotation
virtual double profileRotation()=0
CFxCone::setHeight
virtual OdResult setHeight(double dHeight)=0
CFxPyramid::setHeight
virtual OdResult setHeight(double dHeight)=0
CFxSweep::setPathEntity
virtual OdResult setPathEntity(OdDbEntity *pPathEnt)=0
CFxPyramid::sides
virtual int sides() const =0
CFxPyramid::setSides
virtual OdResult setSides(int iSides)=0
CFxConePtr
OdSmartPtr< CFxCone > CFxConePtr
Definition: FxSolidShape.h:108
CFxLoft::numGuideCurves
virtual int numGuideCurves()=0
CFxLoft::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFxLoft)
CFxTorus::minorRadius
virtual double minorRadius() const =0
CFxWedge::setLength
virtual OdResult setLength(double len)=0
OdRxObject
Definition: RxObject.h:564
CFxCylinder::majorRadius
virtual double majorRadius() const =0
CFx3dSolidShape::update
virtual bool update()=0
CFxRevolve::getRevolveOptions
virtual OdResult getRevolveOptions(OdDbRevolveOptions &revOptions)=0
CFxSweep::direction
virtual OdGeVector3d direction()=0
CFxTorus
Definition: FxSolidShape.h:72
CFxLoft::setClosed
virtual OdResult setClosed(bool closed)=0
CFxPyramidPtr
OdSmartPtr< CFxPyramid > CFxPyramidPtr
Definition: FxSolidShape.h:60
CFxBox::setLength
virtual OdResult setLength(double len)=0
CFx3dSolidShape::transform
virtual OdGeMatrix3d transform() const =0
CFxSweep::setDirection
virtual OdResult setDirection(OdGeVector3d const &v)=0
CFxSweep::length
virtual double length()=0
CFxBox::setWidth
virtual OdResult setWidth(double width)=0
CFxExtrusion::sweepEntity
virtual OdDbEntityPtr sweepEntity()=0
CFxWedgePtr
OdSmartPtr< CFxWedge > CFxWedgePtr
Definition: FxSolidShape.h:93
CFxBox
Definition: FxSolidShape.h:17
CFxLoft::startDraftAngle
virtual double startDraftAngle()=0
CFxExtrusion::setTaperAngle
virtual OdResult setTaperAngle(double dTaperAngle)=0
CFxExtrusionPtr
OdSmartPtr< CFxExtrusion > CFxExtrusionPtr
Definition: FxSolidShape.h:122
CFxPyramid::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFxPyramid)
CFxTorus::setMinorRadius
virtual OdResult setMinorRadius(double dMinorRadius)=0
OdGeMatrix3d
Definition: GeMatrix3d.h:73
CFxCone::topRadius
virtual double topRadius() const =0
CFxBox::getLength
virtual double getLength() const =0
CFxWedge::getHeight
virtual double getHeight() const =0
CFxRevolve::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFxRevolve)
CFxWedge::setWidth
virtual OdResult setWidth(double width)=0
CFxCylinder::radius
virtual double radius() const =0
CFxSweep::setProfileRotation
virtual OdResult setProfileRotation(double angle)=0
CFxCylinder::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFxCylinder)
CFxLoft::startMagnitude
virtual double startMagnitude()=0
CFxPyramid
Definition: FxSolidShape.h:48
CFxTorus::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFxTorus)
CFxLoft::setStartMagnitude
virtual OdResult setStartMagnitude(double startMagnitude)=0
CFxCylinder::height
virtual double height() const =0
CFxBox::setHeight
virtual OdResult setHeight(double height)=0
CFxLoft::getPath
virtual OdDbEntityPtr getPath()=0
CFxTorusPtr
OdSmartPtr< CFxTorus > CFxTorusPtr
Definition: FxSolidShape.h:80
CFxWedge
Definition: FxSolidShape.h:83
CFxSweep::scale
virtual double scale()=0
OdSmartPtr
Definition: SmartPtr.h:58
OdGePoint3d
Definition: GePoint3d.h:55
CFxLoft::loftOptions
virtual OdResult loftOptions(OdDbLoftOptions &loftOptions)=0
CFxSweep::setTwist
virtual OdResult setTwist(double dTwist)=0
CFx3dSolidShapePtr
OdSmartPtr< CFx3dSolidShape > CFx3dSolidShapePtr
Definition: FxSolidShape.h:14
CFxTorus::setMajorRadius
virtual OdResult setMajorRadius(double dMajorRadius)=0
CFxLoftPtr
OdSmartPtr< CFxLoft > CFxLoftPtr
Definition: FxSolidShape.h:189
CFxSphere
Definition: FxSolidShape.h:63
CFxCone::height
virtual double height() const =0
CFx3dSolidShapePEPtr
OdSmartPtr< CFx3dSolidShapePE > CFx3dSolidShapePEPtr
Definition: FxSolidShape.h:197
CFxRevolve::axisPoint
virtual OdGePoint3d axisPoint()=0
CFxCylinder::setMinorRadius
virtual OdResult setMinorRadius(double dMinorRadius)=0
CFxRevolve::sweepEntity
virtual OdDbEntityPtr sweepEntity()=0
CFxSweep::twist
virtual double twist()=0
CFxSweep
Definition: FxSolidShape.h:143
CFxLoft::setEndMagnitude
virtual OdResult setEndMagnitude(double endMagnitude)=0
CFxLoft::endDraftAngle
virtual double endDraftAngle()=0
CFxCylinder::isElliptical
virtual bool isElliptical() const =0
CFxRevolve::setRevolveAngle
virtual OdResult setRevolveAngle(double angle)=0
CFxPyramid::height
virtual double height() const =0
CFxLoft::numCrossSections
virtual int numCrossSections()=0
CFxSpherePtr
OdSmartPtr< CFxSphere > CFxSpherePtr
Definition: FxSolidShape.h:69
CFxExtrusion::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFxExtrusion)
CFxRevolve::setAxisPoint
virtual OdResult setAxisPoint(OdGePoint3d &axisPt)=0
CFxCone::baseMajorRadius
virtual double baseMajorRadius() const =0
OdDbRevolveOptions
Definition: DbRevolveOptions.h:41
CFx3dSolidShape
Definition: FxSolidShape.h:6
CFxExtrusion::setHeight
virtual OdResult setHeight(double dHeight)=0
CFxCone
Definition: FxSolidShape.h:96
CFxRevolve
Definition: FxSolidShape.h:125
CFxLoft::endMagnitude
virtual double endMagnitude()=0
height
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110
CFx3dSolidShapePE::getShape
virtual CFx3dSolidShapePtr getShape(const OdDb3dSolidPtr pSolid, bool *bCompositSolid=NULL)=0
CFxWedge::getWidth
virtual double getWidth() const =0
v
const GLfloat * v
Definition: gles2_ext.h:315
width
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
CFxSweep::sweepEntity
virtual OdDbEntityPtr sweepEntity()=0
CFx3dSolidShapePE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFx3dSolidShapePE)
CFxBox::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFxBox)
CFxRevolve::setSweepEntity
virtual void setSweepEntity(OdDbEntityPtr pEntity)=0
CFxLoft::setStartDraftAngle
virtual OdResult setStartDraftAngle(double startDraftAngle)=0
OdDbLoftOptions
Definition: DbLoftOptions.h:41
CFxSweep::setScale
virtual OdResult setScale(double dScale)=0
CFxLoft::setSurfaceNormalsType
virtual OdResult setSurfaceNormalsType(int iType, bool bRule=false)=0
CFxCylinder
Definition: FxSolidShape.h:30
CFxCylinder::setHeight
virtual OdResult setHeight(double dHeight)=0
CFx3dSolidShape::setPosition
virtual OdResult setPosition(OdGePoint3d &pt)=0
CFxRevolve::startAngle
virtual double startAngle()=0
CFxLoft::surfaceNormalsType
virtual int surfaceNormalsType()=0
CFxWedge::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFxWedge)
CFxTorus::majorRadius
virtual double majorRadius() const =0
CFxCone::setBaseMinorRadius
virtual OdResult setBaseMinorRadius(double dMinorRadius)=0
CFx3dSolidShape::position
virtual OdGePoint3d position() const =0
OdDbEntity
Definition: DbEntity.h:90
CFxCylinder::isCylindrical
virtual bool isCylindrical() const =0
CFxBoxPtr
OdSmartPtr< CFxBox > CFxBoxPtr
Definition: FxSolidShape.h:27
CFxExtrusion
Definition: FxSolidShape.h:111
CFxExtrusion::getSweepOptions
virtual OdResult getSweepOptions(OdDbSweepOptions &sweepOptions)=0
CFxSweepPtr
OdSmartPtr< CFxSweep > CFxSweepPtr
Definition: FxSolidShape.h:163
CFxSphere::setRadius
virtual OdResult setRadius(double dRadius)=0
CFxPyramid::setRadius
virtual OdResult setRadius(double dRadius)=0
CFxCylinder::minorRadius
virtual double minorRadius() const =0
CFxExtrusion::taperAngle
virtual double taperAngle()=0
CFxSweep::getSweepOptions
virtual OdResult getSweepOptions(OdDbSweepOptions &sweepOptions)=0
CFxCone::baseMinorRadius
virtual double baseMinorRadius() const =0
CFxLoft
Definition: FxSolidShape.h:166
CFxCone::setBaseMajorRadius
virtual OdResult setBaseMajorRadius(double dMajorRadius, bool bElliptical=false)=0
CFxPyramid::setTopRadius
virtual OdResult setTopRadius(double dTopRadius)=0
CFxRevolve::setStartAngle
virtual void setStartAngle(double angle)=0
CFxCylinder::setMajorRadius
virtual OdResult setMajorRadius(double dMajorRadius)=0
CFx3dSolidShapePE
Definition: FxSolidShape.h:192
CFxLoft::getGuideCurve
virtual OdDbEntityPtr getGuideCurve(int iNum)=0
CFxPyramid::topRadius
virtual double topRadius() const =0
CFxExtrusion::direction
virtual OdGeVector3d direction()=0
CFxSweep::pathEntity
virtual OdDbEntityPtr pathEntity()=0
CFxWedge::setHeight
virtual OdResult setHeight(double height)=0
CFxCone::setTopRadius
virtual OdResult setTopRadius(double dTopMajorRad, bool bElliptical=false)=0
CFxBox::getWidth
virtual double getWidth() const =0
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
CFxCone::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFxCone)
CFxPyramid::radius
virtual double radius() const =0
CFxCylinder::setRadius
virtual OdResult setRadius(double dRadius)=0
CFxRevolvePtr
OdSmartPtr< CFxRevolve > CFxRevolvePtr
Definition: FxSolidShape.h:140
CFxLoft::crossSectionsCount
virtual int crossSectionsCount()=0
CFxSphere::radius
virtual double radius() const =0
OdDbSweepOptions
Definition: DbSweepOptions.h:41
CFx3dSolidShape::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFx3dSolidShape)
CFxCylinderPtr
OdSmartPtr< CFxCylinder > CFxCylinderPtr
Definition: FxSolidShape.h:45
CFxBox::getHeight
virtual double getHeight() const =0
CFxLoft::setEndDraftAngle
virtual OdResult setEndDraftAngle(double endDraftAngle)=0
CFxRevolve::setDirection
virtual OdResult setDirection(OdGeVector3d &direction)=0
CFxWedge::getLength
virtual double getLength() const =0
CFxLoft::getCrossSection
virtual OdDbEntityPtr getCrossSection(int iNum)=0
CFxLoft::isClosed
virtual bool isClosed()=0