C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
GeometryFactory class presents a factory of geometric object representations and also generates the prepared scene for the next rendering. More...
#include <vsn_geometryfactory.h>
Public Member Functions | |
~GeometryFactory () | |
Destructor. | |
GeometryRep * | CreateMathRep (const MbItem *pItem, CommandType buildType=CommandType::Threaded, double sag=Math::visualSag) |
Group functions operating with the math kernel. Returns the graphic representation using MbItem. | |
MathSketch * | CreateMathSketch (MbPlaneInstance *instance, SceneSegment *pParent=nullptr) |
Returns the graphic representation of sketch. | |
SphereRep * | CreateSphere (float radius, float deviation=60.0f, Node *pParent=nullptr) const |
Function group generates simple representations manually. Creates a sphere representation. | |
ConeRep * | CreateCone (double radius, double height, Node *pParent=nullptr) const |
Creates a cone representation. | |
CylinderRep * | CreateCylinder (double radius, double height, Node *pParent=nullptr) const |
Creates a cylinder representation. | |
TorusRep * | CreateTorus (double majorRadius, double minorRadius, Node *pParent=nullptr) const |
Creates a torus representation. | |
BoxRep * | CreateBox (double width, double length, double height, Node *pParent=nullptr) const |
Creates a parallelepiped representation. | |
RectangleRep * | CreateRectangle (double width, double height, Node *pParent=nullptr) const |
Creates a rectangle representation. | |
LinearDimensionRep * | CreateLinearDimension (Node *pParent=nullptr) const |
Creates a linear size. | |
AngleDimensionRep * | CreateAngleDimension (Node *pParent=nullptr) const |
Creates an angle size. | |
CommentRep * | CreateComment (const std::wstring &text, Node *pParent=nullptr) const |
Creates a comment. | |
DiameterDimensionRep * | CreateDiameterDimension (Node *pParent=nullptr) const |
Creates a diameter size. | |
RadialDimensionRep * | CreateRadialDimension (Node *pParent=nullptr) const |
Creates a radial size. | |
Experiment::TriadRep * | CreateTriad (Experiment::TriadRep::TriadStyle style=Experiment::TriadRep::Flat, Experiment::TriadRep::TriadElements elementsMask=Experiment::TriadRep::All, Node *pParent=nullptr) const |
Creates axes of the coordinate system. | |
LabelGeometry * | CreateText (const WString &text, int fontSize=10, const MbPlacement3D &placement={}) const |
Creates a text. | |
Static Public Member Functions | |
static GeometryFactory * | Instance () |
Returns the factory instance. | |
Protected Member Functions | |
GeometryFactory () | |
Default constructor. | |
GeometryFactory class presents a factory of geometric object representations and also generates the prepared scene for the next rendering.
GeometryFactory class has two function groups. The first one directly operates with math objects providing a deep integration with the math kernel. The second one generates representations of such simple objects as cube, cylinder, sphere, etc., i.e. a polygonal model is computed with not a math kernel, but with visual objects themselves.