IGraphicsFactory is an interface supplied by the application to allow the inference engine to draw inferences in the graphics view.class IGraphicsFactory.
This allows the inference engine to work with any graphics environment.
#include <interfaces.h>
Public Member Functions | |
IGraphicsFactory () | |
Constructor. | |
virtual | ~IGraphicsFactory () |
Destructor. | |
virtual std::unique_ptr< WSM::IMarker > | CreateMarker (const WSM::Point3d &aPt, const WSM::MaterialProps &mat, double radius, int numSides, bool fill, double rotation, bool radiusIsInches)=0 |
CreateMarker create a 3D marker at the given position and given radius and given number of sides. | |
virtual WSM::IPolyLineUPtr | CreatePolyline (const std::string &nameForPolyline, const std::vector< WSM::Point3d > &aPoints, const WSM::MaterialProps &mat, bool is3D=true)=0 |
Create a IPolyLine. | |
virtual WSM::IPolyLineUPtr | CreatePolyline (const std::string &nameForPolyline, const std::vector< WSM::Point2d > &aPoints, const WSM::MaterialProps &mat, bool bScreenSpace)=0 |
Create a IPolyLine. | |
virtual WSM::IPolyLineUPtr | CreatePolyline (const std::string &nameForPolyline, const std::vector< WSM::Point3d > &aPoints, const std::vector< size_t > &aIndicies, const WSM::MaterialProps &mat, bool is3D=true)=0 |
Create a IPolyLine. | |
virtual WSM::IPolygonUPtr | CreatePolygon (const std::string &nameForPolygon, const std::vector< WSM::Point3d > &aPoints, const WSM::MaterialProps &mat, bool is3D=true)=0 |
Create a IPolygon. | |
virtual WSM::IPolygonUPtr | CreatePolygon (const std::string &nameForPolygon, const std::vector< WSM::Point2d > &aPoints, const WSM::MaterialProps &mat, bool bScreenSpace)=0 |
Create a IPolygon. | |
virtual WSM::IPolygonUPtr | CreatePolygon (const std::string &nameForPolygon, const std::vector< WSM::Point3d > &aPoints, const std::vector< size_t > &aIndicies, const WSM::MaterialProps &mat, bool is3D=true)=0 |
Create a IPolygon. | |
|
inline |
Constructor.
|
inlinevirtual |
Destructor.
|
pure virtual |
CreateMarker create a 3D marker at the given position and given radius and given number of sides.
If radiusIsInches is true, the radius is specified in inches. If false radius is specified in normalized screen space
[in] | aPt | |
[in] | mat | |
[in] | radius | The given radius |
[in] | numSides | |
[in] | fill | |
[in] | rotation | |
[in] | radiusIsInches |
|
pure virtual |
Create a IPolygon.
nameForPolygon- Will/can be used to make a unique scenegraph node. aPoints- The Point3ds making up the polygon mat- The material for drawing the polygon bScreenSpace- (true) Pixels, (false) Normalized screen space
|
pure virtual |
Create a IPolygon.
nameForPolygon- Will/can be used to make a unique scenegraph node. aPoints- The Point3ds making up the polygon aIndicies- The index list of polygons to draw. 1-2-3, 4-5-6, ... is3D- Flag to indicate if the polygon should be drawn in 3D or 2D in screen pixel space.
|
pure virtual |
Create a IPolygon.
nameForPolygon- Will/can be used to make a unique scenegraph node. aPoints- The Point3ds making up the polygon is3D- Flag to indicate if the polygon should be drawn in 3D or 2D in screen pixel space.
[in] | nameForPolygon | |
[in] | aPoints | The input list of points |
[in] | mat | |
[in] | is3D |
|
pure virtual |
Create a IPolyLine.
nameForPolyline- Will/can be used to make a unique scenegraph node. aPoints- The Point3ds making up the polyline mat- The material for drawing the polyline bScreenSpace- (true) Pixels, (false) Normalized screen space
|
pure virtual |
Create a IPolyLine.
nameForPolyline- Will/can be used to make a unique scenegraph node. aPoints- The Point3ds making up the polyline aIndicies- The index list of line segments to draw- each pair is a new line segment- 1-2, 3-4, 5-6, ... is3D- Flag to indicate if the polyline should be drawn in 3D or 2D in screen pixel space.
|
pure virtual |
Create a IPolyLine.
nameForPolyline- Will/can be used to make a unique scenegraph node. aPoints- The Point3ds making up the polyline is3D- Flag to indicate if the polyline should be drawn in 3D or 2D in screen pixel space.
[in] | nameForPolyline | |
[in] | aPoints | The input list of points |
[in] | mat | |
[in] | is3D |