C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
VSN::GeometryFactory Class Reference

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.
 
GeometryRepCreateMathRep (const MbItem *pItem, CommandType buildType=CommandType::Threaded, double sag=Math::visualSag)
 Group functions operating with the math kernel. Returns the graphic representation using MbItem.
 
MathSketchCreateMathSketch (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.
 
ConeRepCreateCone (double radius, double height, Node *pParent=nullptr) const
 Creates a cone representation.
 
CylinderRepCreateCylinder (double radius, double height, Node *pParent=nullptr) const
 Creates a cylinder representation.
 
TorusRepCreateTorus (double majorRadius, double minorRadius, Node *pParent=nullptr) const
 Creates a torus representation.
 
BoxRepCreateBox (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.
 
LinearDimensionRepCreateLinearDimension (Node *pParent=nullptr) const
 Creates a linear size.
 
AngleDimensionRepCreateAngleDimension (Node *pParent=nullptr) const
 Creates an angle size.
 
CommentRepCreateComment (const std::wstring &text, Node *pParent=nullptr) const
 Creates a comment.
 
DiameterDimensionRepCreateDiameterDimension (Node *pParent=nullptr) const
 Creates a diameter size.
 
RadialDimensionRepCreateRadialDimension (Node *pParent=nullptr) const
 Creates a radial size.
 
Experiment::TriadRepCreateTriad (Experiment::TriadRep::TriadStyle style=Experiment::TriadRep::Flat, Experiment::TriadRep::TriadElements elementsMask=Experiment::TriadRep::All, Node *pParent=nullptr) const
 Creates axes of the coordinate system.
 
LabelGeometryCreateText (const WString &text, int fontSize=10, const MbPlacement3D &placement={}) const
 Creates a text.
 

Static Public Member Functions

static GeometryFactoryInstance ()
 Returns the factory instance.
 

Protected Member Functions

 GeometryFactory ()
 Default constructor.
 

Detailed Description

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.


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