#include <hps.h>
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
![]() | |
Control (Control &&in_that) | |
Control & | operator= (Control &&in_that) |
The HPS::CylinderAttributeControl class is a smart pointer that is tied to a database object. This object is used to manipulate the various cylinder attributes, such as orientation and tessellation. This table lists default values for the various segment attributes accessible from HPS::CylinderAttributeControl.
|
explicit |
Initializes a control tied to the segment in_seg.
HPS::CylinderAttributeControl::CylinderAttributeControl | ( | CylinderAttributeControl const & | in_that | ) |
Initializes a control tied to the same object as in_that.
HPS::CylinderAttributeControl::CylinderAttributeControl | ( | CylinderAttributeControl && | in_that | ) |
The move constructor creates a CylinderAttributeControl by transferring the underlying impl of the rvalue reference to this CylinderAttributeControl thereby avoiding a copy and allocation.
in_that | An rvalue reference to a CylinderAttributeControl to take the impl from. |
HPS::CylinderAttributeControl::~CylinderAttributeControl | ( | ) |
Releases a reference to the database object this control is tied to.
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from HPS::Control.
CylinderAttributeControl& HPS::CylinderAttributeControl::operator= | ( | CylinderAttributeControl && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this CylinderAttributeControl thereby avoiding a copy.
in_that | An rvalue reference to a CylinderAttributeControl to take the impl from. |
CylinderAttributeControl& HPS::CylinderAttributeControl::operator= | ( | CylinderAttributeControl const & | in_that | ) |
Share the underlying smart-pointer of the CylinderAttributeControl source.
in_that | The CylinderAttributeControl source of the assignment. |
CylinderAttributeControl& HPS::CylinderAttributeControl::SetOrientation | ( | Cylinder::Orientation | in_orientation | ) |
Sets the orientation of colors and radii of cylinders. This can be used to invert the order of the radii and/or colors of all cylinders in a segment without editing each one.
in_orientation | The orientation of colors and radii of cylinders. |
CylinderAttributeControl& HPS::CylinderAttributeControl::SetTessellation | ( | size_t | in_facets | ) |
Sets the number of faces that should be generated around cylinders.
in_facets | the number of faces that should be generated around cylinders. |
bool HPS::CylinderAttributeControl::ShowOrientation | ( | Cylinder::Orientation & | out_adjust | ) | const |
Shows the orientation of colors and radii of cylinders.
out_orientation | The orientation of colors and radii of cylinders. |
bool HPS::CylinderAttributeControl::ShowTessellation | ( | size_t & | out_facets | ) | const |
Shows the number of faces that should be generated around cylinders.
out_facets | Whether text should be bold. |
CylinderAttributeControl& HPS::CylinderAttributeControl::UnsetEverything | ( | ) |
Removes all settings from this object.
CylinderAttributeControl& HPS::CylinderAttributeControl::UnsetOrientation | ( | ) |
Removes the cylinder orientation setting.
CylinderAttributeControl& HPS::CylinderAttributeControl::UnsetTessellation | ( | ) |
Removes the cylinder tessellation setting.