AdvancedVisualizationFactory Class Reference

The AdvancedVisualizationFactory class is the abstract decorator of the Decorator-Pattern and decorates the VisualizationFactoy in Simox. More...

#include <RobotComponents/gui-plugins/RobotTrajectoryDesignerGuiPlugin/Visualization/AdvancedVisualizationFactory.h>

+ Inheritance diagram for AdvancedVisualizationFactory:

Public Member Functions

virtual void applyDisplacement (VirtualRobot::VisualizationNodePtr o, Eigen::Matrix4f &m) override
 
virtual VirtualRobot::VisualizationNodePtr createArrow (const Eigen::Vector3f &n, float length=50.0f, float width=2.0f, const Color &color=Color::Gray()) override
 
virtual VirtualRobot::VisualizationNodePtr createBoundingBox (const VirtualRobot::BoundingBox &bbox, bool wireFrame=false) override
 
virtual VirtualRobot::VisualizationNodePtr createBox (float width, float height, float depth, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f) override
 
virtual VirtualRobot::VisualizationNodePtr createCircle (float radius, float circleCompletion, float width, float colorR=1.0f, float colorG=0.5f, float colorB=0.5f, size_t numberOfCircleParts=30) override
 
virtual VirtualRobot::VisualizationNodePtr createCircleArrow (float radius, float tubeRadius, float completion=1, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f, float transparency=0.0f, int sides=8, int rings=30) override
 
virtual VirtualRobot::VisualizationNodePtr createCoordSystem (float scaling=1.0f, std::string *text=NULL, float axisLength=100.0f, float axisSize=3.0f, int nrOfBlocks=10) override
 
virtual VirtualRobot::VisualizationNodePtr createCurve (const std::vector< PoseBasePtr > transition, bool highligt)
 createCurve creates the visualization of a curve that goes through the Waypoints in transition More...
 
virtual VirtualRobot::VisualizationNodePtr createCylinder (float radius, float height, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f) override
 
virtual VirtualRobot::VisualizationNodePtr createEllipse (float x, float y, float z, bool showAxes=true, float axesHeight=4.0f, float axesWidth=8.0f) override
 
virtual VirtualRobot::VisualizationNodePtr createLine (const Eigen::Matrix4f &from, const Eigen::Matrix4f &to, float width=1.0f, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f) override
 
virtual VirtualRobot::VisualizationNodePtr createLine (const Eigen::Vector3f &from, const Eigen::Vector3f &to, float width=1.0f, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f) override
 
AbstractManipulatorVisualizationPtr createManipulator (VirtualRobot::RobotNodeSetPtr kc, VirtualRobot::RobotPtr robot)
 createManipulator More...
 
virtual VirtualRobot::VisualizationNodePtr createPlane (const Eigen::Vector3f &position, const Eigen::Vector3f &normal, float extend, float transparency, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f) override
 
virtual VirtualRobot::VisualizationNodePtr createPlane (const VirtualRobot::MathTools::Plane &plane, float extend, float transparency, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f) override
 
virtual VirtualRobot::VisualizationNodePtr createSphere (float radius, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f) override
 
virtual VirtualRobot::VisualizationNodePtr createText (const std::string &text, bool billboard=false, float scaling=1.0f, Color c=Color::Black(), float offsetX=20.0f, float offsetY=20.0f, float offsetZ=0.0f) override
 
virtual VirtualRobot::VisualizationNodePtr createTorus (float radius, float tubeRadius, float completion=1.0f, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f, float transparency=0.0f, int sides=8, int rings=30) override
 
virtual VirtualRobot::VisualizationNodePtr createTrajectory (VirtualRobot::TrajectoryPtr t, Color colorNode=Color::Blue(), Color colorLine=Color::Gray(), float nodeSize=15.0f, float lineSize=4.0f) override
 
virtual VirtualRobot::VisualizationNodePtr createTriMeshModelVisualization (VirtualRobot::TriMeshModelPtr model, bool showNormals, Eigen::Matrix4f &pose, bool showLines=true) override
 
virtual VirtualRobot::VisualizationNodePtr createTriMeshModelVisualization (VirtualRobot::TriMeshModelPtr model, Eigen::Matrix4f &pose, float scaleX=1.0f, float scaleY=1.0f, float scaleZ=1.0f) override
 
virtual VirtualRobot::VisualizationNodePtr createUnitedVisualization (const std::vector< VirtualRobot::VisualizationNodePtr > &visualizations) const override
 
virtual VirtualRobot::VisualizationNodePtr createVertexVisualization (const Eigen::Vector3f &position, float radius, float transparency, float colorR=0.5f, float colorG=0.5f, float colorB=0.5f) override
 
virtual VirtualRobot::VisualizationNodePtr createVisualization () override
 
virtual VirtualRobot::VisualizationNodePtr getVisualizationFromFile (const std::ifstream &ifs, bool boundingBox=false, float scaleX=1.0f, float scaleY=1.0f, float scaleZ=1.0f) override
 
virtual VirtualRobot::VisualizationNodePtr getVisualizationFromFile (const std::string &filename, bool boundingBox=false, float scaleX=1.0f, float scaleY=1.0f, float scaleZ=1.0f) override
 
virtual VirtualRobot::VisualizationNodePtr getVisualizationFromPrimitives (const std::vector< VirtualRobot::Primitive::PrimitivePtr > &primitives, bool boundingBox=false, Color color=Color::Gray()) override
 
virtual void init (int &argc, char *argv[], const std::string &appName) override
 

Protected Attributes

VisualizationFactory component
 

Detailed Description

The AdvancedVisualizationFactory class is the abstract decorator of the Decorator-Pattern and decorates the VisualizationFactoy in Simox.

The additional Functionality is that it can also generate the Visualization for a Manipulator

Definition at line 52 of file AdvancedVisualizationFactory.h.

Member Function Documentation

◆ applyDisplacement()

virtual void applyDisplacement ( VirtualRobot::VisualizationNodePtr  o,
Eigen::Matrix4f &  m 
)
inlineoverridevirtual

Definition at line 164 of file AdvancedVisualizationFactory.h.

◆ createArrow()

virtual VirtualRobot::VisualizationNodePtr createArrow ( const Eigen::Vector3f &  n,
float  length = 50.0f,
float  width = 2.0f,
const Color color = Color::Gray() 
)
inlineoverridevirtual

Definition at line 147 of file AdvancedVisualizationFactory.h.

◆ createBoundingBox()

virtual VirtualRobot::VisualizationNodePtr createBoundingBox ( const VirtualRobot::BoundingBox &  bbox,
bool  wireFrame = false 
)
inlineoverridevirtual

Definition at line 121 of file AdvancedVisualizationFactory.h.

◆ createBox()

virtual VirtualRobot::VisualizationNodePtr createBox ( float  width,
float  height,
float  depth,
float  colorR = 0.5f,
float  colorG = 0.5f,
float  colorB = 0.5f 
)
inlineoverridevirtual

Definition at line 82 of file AdvancedVisualizationFactory.h.

◆ createCircle()

virtual VirtualRobot::VisualizationNodePtr createCircle ( float  radius,
float  circleCompletion,
float  width,
float  colorR = 1.0f,
float  colorG = 0.5f,
float  colorB = 0.5f,
size_t  numberOfCircleParts = 30 
)
inlineoverridevirtual

Definition at line 98 of file AdvancedVisualizationFactory.h.

◆ createCircleArrow()

virtual VirtualRobot::VisualizationNodePtr createCircleArrow ( float  radius,
float  tubeRadius,
float  completion = 1,
float  colorR = 0.5f,
float  colorG = 0.5f,
float  colorB = 0.5f,
float  transparency = 0.0f,
int  sides = 8,
int  rings = 30 
)
inlineoverridevirtual

Definition at line 108 of file AdvancedVisualizationFactory.h.

◆ createCoordSystem()

virtual VirtualRobot::VisualizationNodePtr createCoordSystem ( float  scaling = 1.0f,
std::string *  text = NULL,
float  axisLength = 100.0f,
float  axisSize = 3.0f,
int  nrOfBlocks = 10 
)
inlineoverridevirtual

Definition at line 117 of file AdvancedVisualizationFactory.h.

◆ createCurve()

VisualizationNodePtr createCurve ( const std::vector< PoseBasePtr >  transition,
bool  highligt 
)
virtual

createCurve creates the visualization of a curve that goes through the Waypoints in transition

Parameters
transitionthe curve/transition to visualize
highligttrue when the Transition should be highlighted(red) , false if not (blue)
Returns
the visualization node in the visualization method of this factory

Reimplemented in AdvancedCoinVisualizationFactory.

Definition at line 12 of file AdvancedVisualizationFactory.cpp.

◆ createCylinder()

virtual VirtualRobot::VisualizationNodePtr createCylinder ( float  radius,
float  height,
float  colorR = 0.5f,
float  colorG = 0.5f,
float  colorB = 0.5f 
)
inlineoverridevirtual

Definition at line 113 of file AdvancedVisualizationFactory.h.

◆ createEllipse()

virtual VirtualRobot::VisualizationNodePtr createEllipse ( float  x,
float  y,
float  z,
bool  showAxes = true,
float  axesHeight = 4.0f,
float  axesWidth = 8.0f 
)
inlineoverridevirtual

Definition at line 160 of file AdvancedVisualizationFactory.h.

◆ createLine() [1/2]

virtual VirtualRobot::VisualizationNodePtr createLine ( const Eigen::Matrix4f &  from,
const Eigen::Matrix4f &  to,
float  width = 1.0f,
float  colorR = 0.5f,
float  colorG = 0.5f,
float  colorB = 0.5f 
)
inlineoverridevirtual

Definition at line 90 of file AdvancedVisualizationFactory.h.

◆ createLine() [2/2]

virtual VirtualRobot::VisualizationNodePtr createLine ( const Eigen::Vector3f &  from,
const Eigen::Vector3f &  to,
float  width = 1.0f,
float  colorR = 0.5f,
float  colorG = 0.5f,
float  colorB = 0.5f 
)
inlineoverridevirtual

Definition at line 86 of file AdvancedVisualizationFactory.h.

◆ createManipulator()

AbstractManipulatorVisualizationPtr createManipulator ( VirtualRobot::RobotNodeSetPtr  kc,
VirtualRobot::RobotPtr  robot 
)

createManipulator

Parameters
kc
robot
Returns

◆ createPlane() [1/2]

virtual VirtualRobot::VisualizationNodePtr createPlane ( const Eigen::Vector3f &  position,
const Eigen::Vector3f &  normal,
float  extend,
float  transparency,
float  colorR = 0.5f,
float  colorG = 0.5f,
float  colorB = 0.5f 
)
inlineoverridevirtual

Definition at line 139 of file AdvancedVisualizationFactory.h.

◆ createPlane() [2/2]

virtual VirtualRobot::VisualizationNodePtr createPlane ( const VirtualRobot::MathTools::Plane &  plane,
float  extend,
float  transparency,
float  colorR = 0.5f,
float  colorG = 0.5f,
float  colorB = 0.5f 
)
inlineoverridevirtual

Definition at line 143 of file AdvancedVisualizationFactory.h.

◆ createSphere()

virtual VirtualRobot::VisualizationNodePtr createSphere ( float  radius,
float  colorR = 0.5f,
float  colorG = 0.5f,
float  colorB = 0.5f 
)
inlineoverridevirtual

Definition at line 94 of file AdvancedVisualizationFactory.h.

◆ createText()

virtual VirtualRobot::VisualizationNodePtr createText ( const std::string &  text,
bool  billboard = false,
float  scaling = 1.0f,
Color  c = Color::Black(),
float  offsetX = 20.0f,
float  offsetY = 20.0f,
float  offsetZ = 0.0f 
)
inlineoverridevirtual

Definition at line 155 of file AdvancedVisualizationFactory.h.

◆ createTorus()

virtual VirtualRobot::VisualizationNodePtr createTorus ( float  radius,
float  tubeRadius,
float  completion = 1.0f,
float  colorR = 0.5f,
float  colorG = 0.5f,
float  colorB = 0.5f,
float  transparency = 0.0f,
int  sides = 8,
int  rings = 30 
)
inlineoverridevirtual

Definition at line 103 of file AdvancedVisualizationFactory.h.

◆ createTrajectory()

virtual VirtualRobot::VisualizationNodePtr createTrajectory ( VirtualRobot::TrajectoryPtr  t,
Color  colorNode = Color::Blue(),
Color  colorLine = Color::Gray(),
float  nodeSize = 15.0f,
float  lineSize = 4.0f 
)
inlineoverridevirtual

Definition at line 151 of file AdvancedVisualizationFactory.h.

◆ createTriMeshModelVisualization() [1/2]

virtual VirtualRobot::VisualizationNodePtr createTriMeshModelVisualization ( VirtualRobot::TriMeshModelPtr  model,
bool  showNormals,
Eigen::Matrix4f &  pose,
bool  showLines = true 
)
inlineoverridevirtual

Definition at line 135 of file AdvancedVisualizationFactory.h.

◆ createTriMeshModelVisualization() [2/2]

virtual VirtualRobot::VisualizationNodePtr createTriMeshModelVisualization ( VirtualRobot::TriMeshModelPtr  model,
Eigen::Matrix4f &  pose,
float  scaleX = 1.0f,
float  scaleY = 1.0f,
float  scaleZ = 1.0f 
)
inlineoverridevirtual

Definition at line 130 of file AdvancedVisualizationFactory.h.

◆ createUnitedVisualization()

virtual VirtualRobot::VisualizationNodePtr createUnitedVisualization ( const std::vector< VirtualRobot::VisualizationNodePtr > &  visualizations) const
inlineoverridevirtual

Definition at line 171 of file AdvancedVisualizationFactory.h.

◆ createVertexVisualization()

virtual VirtualRobot::VisualizationNodePtr createVertexVisualization ( const Eigen::Vector3f &  position,
float  radius,
float  transparency,
float  colorR = 0.5f,
float  colorG = 0.5f,
float  colorB = 0.5f 
)
inlineoverridevirtual

Definition at line 125 of file AdvancedVisualizationFactory.h.

◆ createVisualization()

virtual VirtualRobot::VisualizationNodePtr createVisualization ( )
inlineoverridevirtual

Definition at line 166 of file AdvancedVisualizationFactory.h.

◆ getVisualizationFromFile() [1/2]

virtual VirtualRobot::VisualizationNodePtr getVisualizationFromFile ( const std::ifstream &  ifs,
bool  boundingBox = false,
float  scaleX = 1.0f,
float  scaleY = 1.0f,
float  scaleZ = 1.0f 
)
inlineoverridevirtual

Definition at line 77 of file AdvancedVisualizationFactory.h.

◆ getVisualizationFromFile() [2/2]

virtual VirtualRobot::VisualizationNodePtr getVisualizationFromFile ( const std::string &  filename,
bool  boundingBox = false,
float  scaleX = 1.0f,
float  scaleY = 1.0f,
float  scaleZ = 1.0f 
)
inlineoverridevirtual

Definition at line 73 of file AdvancedVisualizationFactory.h.

◆ getVisualizationFromPrimitives()

virtual VirtualRobot::VisualizationNodePtr getVisualizationFromPrimitives ( const std::vector< VirtualRobot::Primitive::PrimitivePtr > &  primitives,
bool  boundingBox = false,
Color  color = Color::Gray() 
)
inlineoverridevirtual

Definition at line 69 of file AdvancedVisualizationFactory.h.

◆ init()

virtual void init ( int &  argc,
char *  argv[],
const std::string &  appName 
)
inlineoverridevirtual

Definition at line 65 of file AdvancedVisualizationFactory.h.

Member Data Documentation

◆ component

VisualizationFactory component
protected

Definition at line 186 of file AdvancedVisualizationFactory.h.


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