Polygon Struct Reference

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

+ Inheritance diagram for Polygon:

Public Member Functions

Polygon & addPoint (Eigen::Vector3f p)
 
Polygon & circle (Eigen::Vector3f center, Eigen::Vector3f normal, float radius, std::size_t tessellation=64)
 
Polygon & clear ()
 
 ElementOps (std::string const &id)
 
Polygon & lineColor (Color color)
 
Polygon & lineColor (int r, int g, int b)
 
Polygon & lineColorGlasbeyLUT (std::size_t id, int alpha=255)
 
Polygon & lineWidth (float w)
 
Polygon & plane (Eigen::Hyperplane3f plane, Eigen::Vector3f at, Eigen::Vector2f size)
 Add points representing a plane as rectangle.
 
Polygon & plane (Eigen::Vector3f center, Eigen::Quaternionf orientation, Eigen::Vector2f size)
 Add points representing the XY-plane of the given coordinate system as rectangle.
 
Polygon & points (std::vector< Eigen::Vector3f > const &ps)
 
- Public Member Functions inherited from ElementOps< Polygon, data::ElementPolygon >
Polygon & color (Color color)
 
Polygon & color (Ts &&... ts)
 
Polygon & colorGlasbeyLUT (std::size_t id, int alpha=255)
 
 ElementOps (std::string const &id)
 
Polygon & enable (InteractionDescription const &interactionDescription)
 
Polygon & hide ()
 
Polygon & id (const std::string &id)
 
Polygon & orientation (Eigen::Matrix3f const &ori)
 
Polygon & orientation (Eigen::Quaternionf const &ori)
 
Polygon & orientation (float r, float p, float y)
 
Polygon & overrideMaterial (bool value)
 
Eigen::Matrix4f pose () const
 
Polygon & pose (const Eigen::Affine3f &pose)
 
Polygon & pose (Eigen::Matrix4f const &pose)
 
Polygon & pose (Eigen::Vector3f const &position, Eigen::Matrix3f const &orientation)
 
Polygon & pose (Eigen::Vector3f const &position, Eigen::Quaternionf const &orientation)
 
Polygon & position (Eigen::Vector3f const &pos)
 
Polygon & position (float x, float y, float z)
 
Polygon & scale (Eigen::Vector3f scale)
 
Polygon & scale (float s)
 
Polygon & scale (float x, float y, float z)
 
Polygon & show ()
 
Polygon & transformPose (Eigen::Matrix4f const &p)
 
Polygon & visible (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: