C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Constructor of chamfer or fillet of solid's edges. More...
#include <cr_smooth_solid.h>
Public Member Functions | |
MbeCreatorType | Type () const override |
Get the group type of the object. | |
void | Transform (const MbMatrix3D &matr, MbRegTransform *=nullptr) override |
Transform according to the matrix. More... | |
void | Move (const MbVector3D &to, MbRegTransform *=nullptr) override |
Translate along a vector. More... | |
void | Rotate (const MbAxis3D &axis, double angle, MbRegTransform *=nullptr) override |
Rotate an object about the axis. More... | |
bool | IsSimilar (const MbCreator &) const override |
Determine whether an object is similar? More... | |
void | GetParameters (SmoothValues ¶ms) const |
Get the parameters. | |
void | SetParameters (const SmoothValues ¶ms) |
Set the parameters. | |
Public Member Functions inherited from MbCreator | |
virtual | ~MbCreator () |
Destructor. | |
MbeRefType | RefType () const override |
Get the registration type (for copying, duplication). | |
virtual MbeCreatorType | IsA () const =0 |
Get the object type. | |
virtual MbCreator & | Duplicate (MbRegDuplicate *iReg=nullptr) const =0 |
Create a copy of the object. More... | |
virtual bool | IsSame (const MbCreator &other, double accuracy) const =0 |
Determine whether an object is equal? More... | |
virtual bool | SetEqual (const MbCreator &)=0 |
Make the objects equal if they are similar. | |
virtual bool | CreateShell (MbFaceShell *&shell, MbeCopyMode sameShell, RPArray< MbSpaceItem > *items=nullptr) |
Create a shell from the initial data. More... | |
bool | CreateShell (c3d::ShellSPtr &shell, MbeCopyMode sameShell, RPArray< MbSpaceItem > *items=nullptr) |
Create a shell from the initial data. More... | |
virtual bool | CreateWireFrame (MbWireFrame *&frame, MbeCopyMode sameShell, RPArray< MbSpaceItem > *items=nullptr) |
Create a wire-frame from the source data. More... | |
bool | CreateWireFrame (SPtr< MbWireFrame > &frame, MbeCopyMode sameShell) |
Create a wire-frame from the source data. More... | |
virtual bool | CreatePointFrame (MbPointFrame *&frame, MbeCopyMode sameShell, RPArray< MbSpaceItem > *items=nullptr) |
Create a point-frame from the source data. More... | |
bool | CreatePointFrame (SPtr< MbPointFrame > &frame, MbeCopyMode sameShell) |
Create a point-frame from the source data. More... | |
virtual bool | CreateMesh (MbMesh *&mesh, MbeCopyMode sameShell, RPArray< MbSpaceItem > *items=nullptr) |
Create a polygonal object from the source data. More... | |
bool | CreateMesh (SPtr< MbMesh > &mesh, MbeCopyMode sameShell) |
Create a polygonal object from the source data. More... | |
virtual void | GetProperties (MbProperties &) |
Get properties of the object. | |
virtual void | SetProperties (const MbProperties &) |
Set properties of the object. | |
virtual MbePrompt | GetPropertyName ()=0 |
Get a name of object property. | |
virtual void | Refresh (MbFaceShell &) |
Update the shell shape. | |
virtual void | Refresh (MbWireFrame &) |
Update the frame shape. | |
virtual void | GetBasisItems (RPArray< MbSpaceItem > &) |
Get the basis objects. | |
virtual void | GetBasisPoints (MbControlData3D &) const |
Get control points of object. | |
virtual void | SetBasisPoints (const MbControlData3D &) |
Change the object by control points. | |
virtual size_t | GetCreatorsCount (MbeCreatorType ct) const |
Count internal creators by type. | |
virtual bool | GetInternalCreators (MbeCreatorType, c3d::ConstCreatorsSPtrVector &) const |
Get internal creators by type. | |
virtual bool | SetInternalCreators (MbeCreatorType, c3d::CreatorsSPtrVector &) |
Get internal creators by type. | |
virtual bool | Perform (MbCreator *) const |
Displace/Change the creator. | |
virtual void | SetYourVersion (VERSION version, bool forAll) |
Set the objects version. | |
VERSION | GetYourVersion () const |
Get the object version. | |
const MbSNameMaker & | GetYourNameMaker () const |
Get the name-maker. | |
MbSNameMaker & | SetYourNameMaker () |
Get the object's name-maker for editing. | |
void | SetNameMaker (const MbSNameMaker &n) |
Set the object's name-maker. | |
SimpleName | GetMainName () const |
Get the main name of the object. | |
void | SetMainName (SimpleName n) |
Set the main name of the object. | |
MbeProcessState | GetStatus () const |
Get the flag of state. | |
void | SetStatus (MbeProcessState l) |
Set the flag of state. | |
void | PrepareWrite () const |
Register the object. More... | |
Public Member Functions inherited from MbRefItem | |
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. | |
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. | |
virtual bool | IsFamilyRegistrable () const |
Whether the object belongs to a registrable family. | |
Protected Attributes | |
SArray< MbEdgeFacesIndexes > | indexes |
Indices of edges and indices of adjacent (conjugated) faces. | |
SmoothValues | parameters |
Parameters of fillet or chamfer. | |
double | buildSag |
Build step. | |
Protected Attributes inherited from MbCreator | |
SPtr< MbSNameMaker > | names |
An object defining the names of elements and objects created by the constructor. | |
MbeProcessState | status |
State of the constructor and of the operation result. | |
Additional Inherited Members | |
Protected Member Functions inherited from MbCreator | |
MbCreator (MbSNameMaker *) | |
Constructor by name-maker. | |
MbCreator (const MbSNameMaker &) | |
Constructor by name-maker. | |
MbCreator (const MbCreator &) | |
Copy-constructor. | |
Protected Member Functions inherited from MbRefItem | |
MbRefItem () | |
Constructor without parameters. | |
Constructor of chamfer or fillet of solid's edges.
Constructor of solid's edges chamfer or fillet contains identifiers of edges being processed and parameters for performing operation.
|
overridevirtual |
Transform according to the matrix.
Transform the initial object according to the matrix using the registrator. If the object contains references to the other geometric objects, then the nested objects are transformed according to the matrix. The registrator is used for preventing multiple transformation of the object. The function can be used without the registrator to transform a single object. The registrator must be used to transform a set of interdependent objects to prevent repeated transformation of the nested objects, since it is not ruled out that several objects from the set contain references to one or several common objects subject to transformation.
[in] | matr | - A transformation matrix. |
[in] | iReg | - Registrator. |
Implements MbCreator.
|
overridevirtual |
Translate along a vector.
Move a geometric object along the vector using the registrator. If the object contains references to the other objects, then the translation operation is applied to the nested objects. The registrator is used for preventing multiple transformation of the object. The function can be used without the registrator to transform a single object. The registrator must be used to transform a set of interdependent objects to prevent repeated transformation of the nested objects, since it is not ruled out that several objects from the set contain references to one or several common objects subject to moving.
[in] | to | - Movement vector. |
[in] | iReg | - Registrator. |
Implements MbCreator.
|
overridevirtual |
Rotate an object about the axis.
Rotate an object about the axis by the given angle using the registrator. If the object contains references to the other geometric objects, then the rotation operation is applied to the nested objects too. The registrator is used for preventing multiple transformation of the object. The function can be used without the registrator to transform a single object. The registrator must be used to transform a set of interdependent objects to prevent repeated transformation of the nested objects, since it is not ruled out that several objects from the set contain references to one or several common objects subject to rotation.
[in] | axis | - The rotation axis. |
[in] | angle | - The rotation angle. |
[in] | iReg | - Registrator. |
Implements MbCreator.
|
overridevirtual |
Determine whether an object is similar?
Such are considered the same objects whose data are similar.
[in] | item | - The object to compare. |
Reimplemented from MbCreator.