C3D Toolkit  Kernel - 109619, Vision - 2.4.0.75

Geometrical object in three-dimensional space. More...

#include <space_item.h>

+ Inheritance diagram for MbSpaceItem:
+ Collaboration diagram for MbSpaceItem:

Public Member Functions

virtual ~MbSpaceItem ()
 Destructor.
 
void PrepareWrite () const
 Register object. More...
 
General functions of a geometric object.
virtual MbeRefType RefType () const
 Get a registration type (for copying, duplication).
 
virtual MbeSpaceType IsA () const =0
 Get the type of the object.
 
virtual MbeSpaceType Type () const =0
 Get the group object type.
 
virtual MbeSpaceType Family () const =0
 Get family of objects.
 
virtual bool IsFamilyRegistrable () const
 Whether the object belongs to a registrable family.
 
virtual MbSpaceItemDuplicate (MbRegDuplicate *iReg=NULL) const =0
 Create a copy of the object. More...
 
virtual void Transform (const MbMatrix3D &matr, MbRegTransform *iReg=NULL)=0
 Convert the object according to the matrix. More...
 
virtual void Move (const MbVector3D &to, MbRegTransform *iReg=NULL)=0
 Move an object along a vector. More...
 
virtual void Rotate (const MbAxis3D &axis, double angle, MbRegTransform *iReg=NULL)=0
 Rotate an object around an axis at a given angle. More...
 
virtual bool IsSame (const MbSpaceItem &other, double accuracy=LENGTH_EPSILON) const =0
 Determine whether an object is equal. More...
 
virtual bool IsSimilar (const MbSpaceItem &item) const
 Determine whether an object is similar. More...
 
virtual bool SetEqual (const MbSpaceItem &item)=0
 Make objects equal if they are similar. More...
 
virtual double DistanceToPoint (const MbCartPoint3D &point) const =0
 Determine the distance to the point. More...
 
virtual void AddYourGabaritTo (MbCube &cube) const =0
 Expand sent bounding box (a.k.a. gabarit), so that it included the object. More...
 
virtual void CalculateLocalGabarit (const MbMatrix3D &into, MbCube &cube) const =0
 To compute bounding box in a local coordinate system. More...
 
virtual void Refresh ()
 Translate all the time (mutable) data objects in an inconsistent (initial) state.
 
virtual MbPropertyCreateProperty (MbePrompt name) const =0
 Create your own property with the name.
 
virtual void GetProperties (MbProperties &properties)=0
 Outstanding properties of the object. More...
 
virtual void SetProperties (const MbProperties &properties)=0
 Change the properties of an object. More...
 
virtual void CalculateMesh (const MbStepData &stepData, const MbFormNote &note, MbMesh &mesh) const =0
 Build polygonal copy mesh. More...
 
void CalculateWire (const MbStepData &stepData, MbMesh &mesh) const
 
void CalculateWire (double sag, MbMesh &mesh) const
 
virtual void GetBasisItems (RPArray< MbSpaceItem > &)
 Outstanding reference objects in a container sent.
 
virtual void GetBasisPoints (MbControlData3D &) const
 Get control points of object.
 
virtual void SetBasisPoints (const MbControlData3D &)
 Change the object by control points.
 
- Public Member Functions inherited from TapeBase
 TapeBase (RegistrableRec regs=noRegistrable)
 Constructor.
 
 TapeBase (const TapeBase &)
 Copy-constructor.
 
virtual ~TapeBase ()
 Destructor.
 
RegistrableRec GetRegistrable () const
 Whether the stream class is registrable.
 
void SetRegistrable (RegistrableRec regs=registrable) const
 Set the state of registration of the stream class.
 
virtual const char * GetPureName (const VersionContainer &) const
 Get the class name.
 
- Public Member Functions inherited from MbRefItem
 MbRefItem ()
 Constructor without parameters.
 
refcount_t GetUseCount () const
 Get count of references (get count of owners of an object).
 
refcount_t AddRef () const
 Increase count of references by one.
 
refcount_t DecRef () const
 Decrease count of references by one.
 
refcount_t Release () const
 Decrease count of references by one and if count of references became zero, then remove itself.
 

Protected Member Functions

 MbSpaceItem ()
 Default constructor.
 

Detailed Description

Geometrical object in three-dimensional space.

The parent class of geometric objects in three dimensions. Heirs are: point MbPoint3D, curve MbCurve3D, surface MbSurface, geometric object model and MbItem other ancillary facilities.
The object has a reference count and can be written and read.

Member Function Documentation

◆ Duplicate()

virtual MbSpaceItem& MbSpaceItem::Duplicate ( MbRegDuplicate iReg = NULL) const
pure virtual

Create a copy of the object.

Create a copy of an object using the registrator. Registrator is used to prevent multiple copy of the object. If the object contains references to the other objects, then nested objects are copied as well. It is allowed not to pass registrator into the function. Then new copy of object will be created. While copying of single object or set of not connected objects, it is allowed not to use registrator. Registrator should be used if it is required to copy several connected objects. It is possible, that objects connection is based on the references to common objects. Then, while copying without using of registrator, it is possible to obtain set of copies, that contain references to the different copies of the same nested object, that leads to loss of connection between copies.

Parameters
[in]iReg- Registrator.
Returns
A copy of the object.

Implemented in MbNurbs3D, MbSplineSurface, MbArc3D, MbSurfaceIntersectionCurve, MbThread, MbMeshSurface, MbPointsSymbol, MbRadialDimension, MbCubicSpline3D, MbJoinSurface, MbHermit3D, MbPlane, MbLoftedSurface, MbSectionSurface, MbConeSpiral, MbOffsetSurface, MbGridSurface, MbFilletSurface, MbConeSurface, MbChannelSurface, MbAngularDimension, MbCylinderSurface, MbCoonsPatchSurface, MbCurveBoundedSurface, MbEvolutionSurface, MbSolid, MbRevolutionSurface, MbLeader, MbTorusSurface, MbSurfaceCurve, MbSymbol, MbItem, MbSurface, MbSmoothSurface, MbRuledSurface, MbBezier3D, MbMesh, MbChamferSurface, MbSphereSurface, MbSpiralSurface, MbOffsetCurve3D, MbElevationSurface, MbExpansionSurface, MbContourOnSurface, MbPolyline3D, MbCoverSurface, MbPointFrame, MbExactionSurface, MbSpiral, MbAssembly, MbContour3D, MbSilhouetteCurve, MbCurve3D, MbCornerSurface, MbCurveSpiral, MbCollection, MbCrookedSpiral, MbPolySurface, MbLinearDimension, MbWireFrame, MbCharacterCurve3D, MbReparamCurve3D, MbMarker, MbExtrusionSurface, MbExplorationSurface, MbSpaceInstance, MbInstance, MbBridgeCurve3D, MbPlaneInstance, MbGregorySurface, MbSectorSurface, MbLineSegment3D, MbContourOnPlane, MbSweptSurface, MbRough, MbTrimmedCurve3D, MbElementarySurface, MbBSpline, MbLine3D, MbPlaneCurve, MbAssistingItem, MbPoint3D, MbPolyCurve3D, and MbLegend.

◆ Transform()

virtual void MbSpaceItem::Transform ( const MbMatrix3D matr,
MbRegTransform iReg = NULL 
)
pure virtual

Convert the object according to the matrix.

Convert the original object according to the matrix using the registrator. If object contains references to the other geometric objects, then nested objects are transformed according to the matrix. Registrator is needed to prevent multiple object copying. It is allowed to use function without registrator, if it is needed to transform single object. If it is needed to transform a set of connected objects, then one should use registrator to prevent repeating transformation of nested objects, because of the possible situation when several objects contain references to the same common objects, that require to be transformed.

Parameters
[in]matr- Transformation matrix.
[in]iReg- Registrator.

Implemented in MbNurbs3D, MbArc3D, MbSurfaceIntersectionCurve, MbThread, MbMeshSurface, MbPointsSymbol, MbRadialDimension, MbCubicSpline3D, MbJoinSurface, MbHermit3D, MbPlane, MbLoftedSurface, MbOffsetSurface, MbSectionSurface, MbGridSurface, MbFilletSurface, MbConeSurface, MbAngularDimension, MbCylinderSurface, MbCoonsPatchSurface, MbCurveBoundedSurface, MbEvolutionSurface, MbRevolutionSurface, MbSolid, MbSurfaceCurve, MbLeader, MbTorusSurface, MbSymbol, MbSurface, MbItem, MbRuledSurface, MbSmoothSurface, MbBezier3D, MbChamferSurface, MbMesh, MbSphereSurface, MbSpiralSurface, MbOffsetCurve3D, MbElevationSurface, MbContourOnSurface, MbExpansionSurface, MbPolyline3D, MbCoverSurface, MbExactionSurface, MbSpiral, MbPointFrame, MbContour3D, MbSilhouetteCurve, MbCurve3D, MbAssembly, MbCornerSurface, MbPolySurface, MbLinearDimension, MbCollection, MbWireFrame, MbCharacterCurve3D, MbReparamCurve3D, MbExtrusionSurface, MbExplorationSurface, MbMarker, MbSpaceInstance, MbBridgeCurve3D, MbGregorySurface, MbSectorSurface, MbInstance, MbLineSegment3D, MbPlaneInstance, MbSweptSurface, MbTrimmedCurve3D, MbElementarySurface, MbBSpline, MbLine3D, MbPlaneCurve, MbAssistingItem, MbPolyCurve3D, MbPoint3D, and MbLegend.

◆ Move()

virtual void MbSpaceItem::Move ( const MbVector3D to,
MbRegTransform iReg = NULL 
)
pure virtual

Move an object along a vector.

Move an object along a geometric vector using the registrator. If object contains references to the other geometric objects then the move operation is applied to the nested objects. Registrator is needed to prevent multiple copying of the object. It is allowed to use function without registrator, if it is needed to transform a single object. If it is needed to transform a set of connected objects, then one should use registrator to prevent repeating transformation of nested objects, because of the possible situation when several objects contain references to the same common objects, that require to be moved.

Parameters
[in]to- Shift vector.
[in]iReg- Registrator.

Implemented in MbNurbs3D, MbArc3D, MbSurfaceIntersectionCurve, MbThread, MbMeshSurface, MbPointsSymbol, MbRadialDimension, MbCubicSpline3D, MbJoinSurface, MbHermit3D, MbLoftedSurface, MbOffsetSurface, MbSectionSurface, MbGridSurface, MbFilletSurface, MbAngularDimension, MbCoonsPatchSurface, MbCurveBoundedSurface, MbEvolutionSurface, MbRevolutionSurface, MbSolid, MbSurfaceCurve, MbLeader, MbSymbol, MbSurface, MbItem, MbRuledSurface, MbSmoothSurface, MbBezier3D, MbChamferSurface, MbMesh, MbSpiralSurface, MbOffsetCurve3D, MbElevationSurface, MbContourOnSurface, MbExpansionSurface, MbPolyline3D, MbCoverSurface, MbExactionSurface, MbSpiral, MbPointFrame, MbContour3D, MbSilhouetteCurve, MbCurve3D, MbAssembly, MbCornerSurface, MbPolySurface, MbLinearDimension, MbCollection, MbWireFrame, MbCharacterCurve3D, MbReparamCurve3D, MbExtrusionSurface, MbExplorationSurface, MbMarker, MbSpaceInstance, MbBridgeCurve3D, MbGregorySurface, MbSectorSurface, MbInstance, MbLineSegment3D, MbPlaneInstance, MbSweptSurface, MbTrimmedCurve3D, MbElementarySurface, MbBSpline, MbLine3D, MbPlaneCurve, MbAssistingItem, MbPolyCurve3D, MbPoint3D, and MbLegend.

◆ Rotate()

virtual void MbSpaceItem::Rotate ( const MbAxis3D axis,
double  angle,
MbRegTransform iReg = NULL 
)
pure virtual

Rotate an object around an axis at a given angle.

Rotate an object around an axis at a given angle with the registrator. If object contains references to the other geometric objects then the rotation operation is applied to the nested objects. Registrator is needed to prevent multiple copying of the object. It is allowed to use function without registrator, if it is needed to transform a single object. If it is needed to transform a set of connected objects, then one should use registrator to prevent repeating transformation of nested objects, because of the possible situation when several objects contain references to the same common objects, that require to be rotated.

Parameters
[in]axis- The axis of rotation.
[in]angle- Rotation.
[in]iReg- Registrator.

Implemented in MbNurbs3D, MbArc3D, MbSurfaceIntersectionCurve, MbThread, MbMeshSurface, MbPointsSymbol, MbRadialDimension, MbCubicSpline3D, MbJoinSurface, MbHermit3D, MbLoftedSurface, MbOffsetSurface, MbSectionSurface, MbGridSurface, MbFilletSurface, MbAngularDimension, MbCoonsPatchSurface, MbCurveBoundedSurface, MbEvolutionSurface, MbRevolutionSurface, MbSolid, MbSurfaceCurve, MbLeader, MbSymbol, MbSurface, MbItem, MbRuledSurface, MbSmoothSurface, MbBezier3D, MbChamferSurface, MbMesh, MbSpiralSurface, MbOffsetCurve3D, MbElevationSurface, MbContourOnSurface, MbExpansionSurface, MbPolyline3D, MbCoverSurface, MbExactionSurface, MbSpiral, MbPointFrame, MbContour3D, MbSilhouetteCurve, MbCurve3D, MbAssembly, MbCornerSurface, MbPolySurface, MbLinearDimension, MbCollection, MbWireFrame, MbCharacterCurve3D, MbReparamCurve3D, MbExtrusionSurface, MbExplorationSurface, MbMarker, MbSpaceInstance, MbBridgeCurve3D, MbGregorySurface, MbSectorSurface, MbInstance, MbLineSegment3D, MbPlaneInstance, MbSweptSurface, MbTrimmedCurve3D, MbElementarySurface, MbBSpline, MbLine3D, MbPlaneCurve, MbAssistingItem, MbPolyCurve3D, MbPoint3D, and MbLegend.

◆ IsSame()

virtual bool MbSpaceItem::IsSame ( const MbSpaceItem other,
double  accuracy = LENGTH_EPSILON 
) const
pure virtual

Determine whether an object is equal.

Still considered objects of the same type, all data is the same (equal).

Parameters
[in]item- The object to compare.
[in]accuracy- The accuracy to compare.
Returns
Whether the objects are equal.

Implemented in MbNurbs3D, MbSplineSurface, MbArc3D, MbSurfaceIntersectionCurve, MbThread, MbMeshSurface, MbPointsSymbol, MbRadialDimension, MbCubicSpline3D, MbJoinSurface, MbHermit3D, MbPlane, MbLoftedSurface, MbSectionSurface, MbConeSpiral, MbOffsetSurface, MbGridSurface, MbFilletSurface, MbConeSurface, MbChannelSurface, MbAngularDimension, MbCylinderSurface, MbCoonsPatchSurface, MbSolid, MbCurveBoundedSurface, MbEvolutionSurface, MbRevolutionSurface, MbSurfaceCurve, MbLeader, MbTorusSurface, MbSymbol, MbItem, MbSurface, MbSmoothSurface, MbMesh, MbRuledSurface, MbBezier3D, MbChamferSurface, MbSphereSurface, MbSpiralSurface, MbOffsetCurve3D, MbElevationSurface, MbContourOnSurface, MbExpansionSurface, MbPolyline3D, MbPointFrame, MbAssembly, MbCoverSurface, MbExactionSurface, MbSpiral, MbCurve3D, MbContour3D, MbSilhouetteCurve, MbCornerSurface, MbCurveSpiral, MbCollection, MbWireFrame, MbCrookedSpiral, MbPolySurface, MbLinearDimension, MbCharacterCurve3D, MbMarker, MbReparamCurve3D, MbSpaceInstance, MbExtrusionSurface, MbExplorationSurface, MbInstance, MbPlaneInstance, MbBridgeCurve3D, MbGregorySurface, MbSectorSurface, MbContourOnPlane, MbLineSegment3D, MbSweptSurface, MbRough, MbTrimmedCurve3D, MbElementarySurface, MbBSpline, MbLine3D, MbPlaneCurve, MbAssistingItem, MbPoint3D, MbPolyCurve3D, and MbLegend.

◆ IsSimilar()

◆ SetEqual()

virtual bool MbSpaceItem::SetEqual ( const MbSpaceItem item)
pure virtual

◆ DistanceToPoint()

virtual double MbSpaceItem::DistanceToPoint ( const MbCartPoint3D point) const
pure virtual

◆ AddYourGabaritTo()

virtual void MbSpaceItem::AddYourGabaritTo ( MbCube cube) const
pure virtual

Expand sent bounding box (a.k.a. gabarit), so that it included the object.

Expand sent bounding box, so that it included the object.

Parameters
[in,out]cube- The bounding box to expand.

Implemented in MbSurfaceIntersectionCurve, MbThread, MbRadialDimension, MbAngularDimension, MbSolid, MbSurfaceCurve, MbSymbol, MbItem, MbSurface, MbMesh, MbOffsetCurve3D, MbContourOnSurface, MbPointFrame, MbAssembly, MbSpiral, MbCurve3D, MbCollection, MbWireFrame, MbLinearDimension, MbCharacterCurve3D, MbMarker, MbSpaceInstance, MbInstance, MbBridgeCurve3D, MbPlaneInstance, MbLine3D, MbAssistingItem, MbPoint3D, MbPolyCurve3D, and MbLegend.

◆ CalculateLocalGabarit()

virtual void MbSpaceItem::CalculateLocalGabarit ( const MbMatrix3D into,
MbCube cube 
) const
pure virtual

To compute bounding box in a local coordinate system.

To obtain bounding box of object with regar to a local coordinate system, sent box is made to be empty. Then it is computed bounding box of object in a local coordinate system \ and it is stored in box 'cube'

Parameters
[in]into- Transformation matrix from object's current coordinate system to a local coordinate system
[in,out]cube- Information on bounding box

Implemented in MbSurface, MbThread, MbCurve3D, MbSolid, MbArc3D, MbPlane, MbCurveBoundedSurface, MbConeSurface, MbCylinderSurface, MbSectionSurface, MbSphereSurface, MbEvolutionSurface, MbRuledSurface, MbChamferSurface, MbContour3D, MbExtrusionSurface, MbSectorSurface, MbPlaneCurve, MbPolyline3D, MbReparamCurve3D, MbItem, MbMesh, MbLine3D, MbLineSegment3D, MbPointFrame, MbAssembly, MbCollection, MbWireFrame, MbSpaceInstance, MbInstance, MbPlaneInstance, MbAssistingItem, MbPoint3D, and MbLegend.

◆ GetProperties()

virtual void MbSpaceItem::GetProperties ( MbProperties properties)
pure virtual

Outstanding properties of the object.

Issue internal data (properties) of the object for viewing and modification.

Parameters
[in]properties- Container for the internal data of the object.

Implemented in MbCurve3D, MbNurbs3D, MbSplineSurface, MbArc3D, MbSurfaceIntersectionCurve, MbThread, MbMeshSurface, MbPointsSymbol, MbRadialDimension, MbCubicSpline3D, MbJoinSurface, MbHermit3D, MbPlane, MbLoftedSurface, MbOffsetSurface, MbSectionSurface, MbContour3D, MbGridSurface, MbConeSpiral, MbFilletSurface, MbConeSurface, MbChannelSurface, MbAngularDimension, MbCylinderSurface, MbCoonsPatchSurface, MbSolid, MbCurveBoundedSurface, MbEvolutionSurface, MbRevolutionSurface, MbSurfaceCurve, MbSurface, MbLeader, MbTorusSurface, MbSymbol, MbItem, MbMesh, MbRuledSurface, MbSmoothSurface, MbBezier3D, MbChamferSurface, MbContourOnSurface, MbOffsetCurve3D, MbSphereSurface, MbSpiralSurface, MbElevationSurface, MbPointFrame, MbExpansionSurface, MbAssembly, MbPolyline3D, MbCoverSurface, MbSpiral, MbExactionSurface, MbCornerSurface, MbSilhouetteCurve, MbCollection, MbLinearDimension, MbWireFrame, MbCurveSpiral, MbPolySurface, MbReparamCurve3D, MbMarker, MbCharacterCurve3D, MbCrookedSpiral, MbSpaceInstance, MbExtrusionSurface, MbExplorationSurface, MbInstance, MbPlaneInstance, MbBridgeCurve3D, MbGregorySurface, MbSectorSurface, MbLineSegment3D, MbSweptSurface, MbTrimmedCurve3D, MbContourOnPlane, MbPlaneCurve, MbElementarySurface, MbLine3D, MbAssistingItem, MbBSpline, MbPoint3D, MbPolyCurve3D, and MbLegend.

◆ SetProperties()

virtual void MbSpaceItem::SetProperties ( const MbProperties properties)
pure virtual

Change the properties of an object.

Changing the internal data (properties) of the object you are copying the corresponding values from the sent object.

Parameters
[in]properties- Container for the internal data of the object.

Implemented in MbCurve3D, MbNurbs3D, MbSplineSurface, MbArc3D, MbSurfaceIntersectionCurve, MbThread, MbMeshSurface, MbPointsSymbol, MbRadialDimension, MbCubicSpline3D, MbJoinSurface, MbHermit3D, MbPlane, MbLoftedSurface, MbOffsetSurface, MbSectionSurface, MbContour3D, MbGridSurface, MbConeSpiral, MbFilletSurface, MbConeSurface, MbAngularDimension, MbCylinderSurface, MbCoonsPatchSurface, MbSolid, MbCurveBoundedSurface, MbEvolutionSurface, MbRevolutionSurface, MbSurfaceCurve, MbSurface, MbLeader, MbTorusSurface, MbSymbol, MbItem, MbMesh, MbRuledSurface, MbSmoothSurface, MbBezier3D, MbChamferSurface, MbContourOnSurface, MbOffsetCurve3D, MbSphereSurface, MbSpiralSurface, MbElevationSurface, MbPointFrame, MbExpansionSurface, MbAssembly, MbPolyline3D, MbCoverSurface, MbSpiral, MbExactionSurface, MbCornerSurface, MbSilhouetteCurve, MbCollection, MbLinearDimension, MbWireFrame, MbCurveSpiral, MbPolySurface, MbReparamCurve3D, MbMarker, MbCharacterCurve3D, MbCrookedSpiral, MbSpaceInstance, MbExtrusionSurface, MbExplorationSurface, MbInstance, MbPlaneInstance, MbBridgeCurve3D, MbGregorySurface, MbSectorSurface, MbLineSegment3D, MbSweptSurface, MbTrimmedCurve3D, MbContourOnPlane, MbPlaneCurve, MbElementarySurface, MbLine3D, MbAssistingItem, MbBSpline, MbPoint3D, MbPolyCurve3D, and MbLegend.

◆ CalculateMesh()

virtual void MbSpaceItem::CalculateMesh ( const MbStepData stepData,
const MbFormNote note,
MbMesh mesh 
) const
pure virtual

Build polygonal copy mesh.

Build a polygonal copy of the object that is represented by polygons or/and fasets.

Parameters
[in]stepData- Data for еру step calculation for polygonal object.
[in]note- Way for polygonal object constructing.
[in,out]mesh- The builded polygonal object.

Implemented in MbCurve3D, MbSurfaceIntersectionCurve, MbThread, MbGridSurface, MbRadialDimension, MbContour3D, MbAngularDimension, MbItem, MbCurveBoundedSurface, MbSolid, MbSurface, MbSymbol, MbMesh, MbContourOnSurface, MbPointFrame, MbAssembly, MbCollection, MbWireFrame, MbLinearDimension, MbMarker, MbSpaceInstance, MbInstance, MbPlaneInstance, MbBSpline, MbAssistingItem, MbPoint3D, and MbLegend.

◆ PrepareWrite()

void MbSpaceItem::PrepareWrite ( ) const
inline

Register object.

Register object to prevent its rewritable. Other objects may contain a pointer to the given object. Function sets a flag to 'true', which allows to write object for one time, and make a reference to the written instance of the other records. Reading is performed once, and there is substitution of already read object for all the remaining reading cases.


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