Polygon Struct Reference

#include <RobotAPI/components/ArViz/Client/Elements.h>

+ Inheritance diagram for Polygon:

Public Member Functions

PolygonaddPoint (Eigen::Vector3f p)
 
Polygoncircle (Eigen::Vector3f center, Eigen::Vector3f normal, float radius, std::size_t tessellation=64)
 
Polygonclear ()
 
 ElementOps (std::string const &id)
 
PolygonlineColor (Color color)
 
PolygonlineColor (int r, int g, int b)
 
PolygonlineColorGlasbeyLUT (std::size_t id, int alpha=255)
 
PolygonlineWidth (float w)
 
Polygonplane (Eigen::Hyperplane3f plane, Eigen::Vector3f at, Eigen::Vector2f size)
 Add points representing a plane as rectangle.
 
Polygonplane (Eigen::Vector3f center, Eigen::Quaternionf orientation, Eigen::Vector2f size)
 Add points representing the XY-plane of the given coordinate system as rectangle.
 
Polygonpoints (std::vector< Eigen::Vector3f > const &ps)
 
- Public Member Functions inherited from ElementOps< Polygon, data::ElementPolygon >
Polygoncolor (Color color)
 
Polygoncolor (Ts &&... ts)
 
PolygoncolorGlasbeyLUT (std::size_t id, int alpha=255)
 
 ElementOps (std::string const &id)
 
Polygonenable (InteractionDescription const &interactionDescription)
 
Polygonhide ()
 
Polygonid (const std::string &id)
 
Polygonorientation (Eigen::Matrix3f const &ori)
 
Polygonorientation (Eigen::Quaternionf const &ori)
 
Polygonorientation (float r, float p, float y)
 
PolygonoverrideMaterial (bool value)
 
Eigen::Matrix4f pose () const
 
Polygonpose (const Eigen::Affine3f &pose)
 
Polygonpose (Eigen::Matrix4f const &pose)
 
Polygonpose (Eigen::Vector3f const &position, Eigen::Matrix3f const &orientation)
 
Polygonpose (Eigen::Vector3f const &position, Eigen::Quaternionf const &orientation)
 
Polygonposition (Eigen::Vector3f const &pos)
 
Polygonposition (float x, float y, float z)
 
Polygonscale (Eigen::Vector3f scale)
 
Polygonscale (float s)
 
Polygonscale (float x, float y, float z)
 
Polygonshow ()
 
PolygontransformPose (Eigen::Matrix4f const &p)
 
Polygonvisible (bool visible)
 

Additional Inherited Members

- Public Attributes inherited from ElementOps< Polygon, data::ElementPolygon >
IceInternal::Handle< data::ElementPolygon > data_
 

Detailed Description

Definition at line 260 of file Elements.h.

Member Function Documentation

◆ addPoint()

Polygon & addPoint ( Eigen::Vector3f p)
inline

Definition at line 302 of file Elements.h.

+ Here is the caller graph for this function:

◆ circle()

Polygon & circle ( Eigen::Vector3f center,
Eigen::Vector3f normal,
float radius,
std::size_t tessellation = 64 )

Definition at line 171 of file Elements.cpp.

+ Here is the call graph for this function:

◆ clear()

Polygon & clear ( )
inline

Definition at line 265 of file Elements.h.

◆ ElementOps()

ElementOps ( std::string const & id)
inline

Definition at line 119 of file ElementOps.h.

◆ lineColor() [1/2]

Polygon & lineColor ( Color color)
inline

Definition at line 272 of file Elements.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lineColor() [2/2]

Polygon & lineColor ( int r,
int g,
int b )
inline

Definition at line 280 of file Elements.h.

+ Here is the call graph for this function:

◆ lineColorGlasbeyLUT()

Polygon & lineColorGlasbeyLUT ( std::size_t id,
int alpha = 255 )
inline

Definition at line 286 of file Elements.h.

+ Here is the call graph for this function:

◆ lineWidth()

Polygon & lineWidth ( float w)
inline

Definition at line 292 of file Elements.h.

+ Here is the caller graph for this function:

◆ plane() [1/2]

Polygon & plane ( Eigen::Hyperplane3f plane,
Eigen::Vector3f at,
Eigen::Vector2f size )

Add points representing a plane as rectangle.

Parameters
planeThe plane.
atCenter of rectangle, is projected onto plane.
sizeExtents of rectangle.

Definition at line 149 of file Elements.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ plane() [2/2]

Polygon & plane ( Eigen::Vector3f center,
Eigen::Quaternionf orientation,
Eigen::Vector2f size )

Add points representing the XY-plane of the given coordinate system as rectangle.

Parameters
centerThe rectangle center.
orientationThe orientation of the coordinate system.
sizeThe XY-size of the rectangle.

Definition at line 157 of file Elements.cpp.

+ Here is the call graph for this function:

◆ points()

Polygon & points ( std::vector< Eigen::Vector3f > const & ps)

Definition at line 135 of file Elements.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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