#include <hps.h>
Public Member Functions | |
EdgeAttributeControl (SegmentKey &in_seg) | |
EdgeAttributeControl (EdgeAttributeControl const &in_that) | |
EdgeAttributeControl (EdgeAttributeControl &&in_that) | |
HPS::Type | ObjectType () const |
EdgeAttributeControl & | operator= (EdgeAttributeControl &&in_that) |
EdgeAttributeControl & | operator= (EdgeAttributeControl const &in_that) |
EdgeAttributeControl & | SetHardAngle (float in_angle) |
EdgeAttributeControl & | SetPattern (char const *in_pattern_name) |
EdgeAttributeControl & | SetWeight (float in_weight, Edge::SizeUnits in_units=Edge::SizeUnits::ScaleFactor) |
bool | ShowHardAngle (float &out_angle) const |
bool | ShowPattern (UTF8 &out_pattern_name) const |
bool | ShowWeight (float &out_weight, Edge::SizeUnits &out_units) const |
EdgeAttributeControl & | UnsetEverything () |
EdgeAttributeControl & | UnsetHardAngle () |
EdgeAttributeControl & | UnsetPattern () |
EdgeAttributeControl & | UnsetWeight () |
~EdgeAttributeControl () | |
![]() | |
Control (Control const &in_that)=default | |
![]() | |
virtual bool | Empty () const |
intptr_t | GetClassID () const |
intptr_t | GetInstanceID () const |
bool | HasType (HPS::Type in_mask) const |
Object (Object const &that) | |
Object (Object &&in_that) | |
Object & | operator= (Object const &other_object) |
Object & | operator= (Object &&in_that) |
virtual void | Reset () |
HPS::Type | Type () const |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
![]() | |
Control (Control &&in_that) | |
Control & | operator= (Control &&in_that) |
The HPS::EdgeAttributeControl class is a smart pointer that is tied to a database object. Using this control, you can manipulate the various attributes associated with geometry edges. Edges are present on any piece of facetted geometry.
This table lists default values for the various segment attributes accessible from HPS::EdgeAttributeControl.
|
explicit |
Initializes a control tied to the segment in_seg.
HPS::EdgeAttributeControl::EdgeAttributeControl | ( | EdgeAttributeControl const & | in_that | ) |
Initializes a control tied to the same object as in_that.
HPS::EdgeAttributeControl::EdgeAttributeControl | ( | EdgeAttributeControl && | in_that | ) |
The move constructor creates an EdgeAttributeControl by transferring the underlying impl of the rvalue reference to this EdgeAttributeControl thereby avoiding a copy and allocation.
in_that | An rvalue reference to an EdgeAttributeControl to take the impl from. |
HPS::EdgeAttributeControl::~EdgeAttributeControl | ( | ) |
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.
EdgeAttributeControl& HPS::EdgeAttributeControl::operator= | ( | EdgeAttributeControl && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this EdgeAttributeControl thereby avoiding a copy.
in_that | An rvalue reference to an EdgeAttributeControl to take the impl from. |
EdgeAttributeControl& HPS::EdgeAttributeControl::operator= | ( | EdgeAttributeControl const & | in_that | ) |
Share the underlying smart-pointer of the EdgeAttributeControl source.
in_that | The EdgeAttributeControl source of the assignment. |
EdgeAttributeControl& HPS::EdgeAttributeControl::SetHardAngle | ( | float | in_angle | ) |
Sets the angle between adjacent faces necessary for the edge between them to be considered a hard edge.
in_angle | The angle, in degrees, between the adjacent faces necessary for a hard edge. |
EdgeAttributeControl& HPS::EdgeAttributeControl::SetPattern | ( | char const * | in_pattern_name | ) |
Specifies the pattern of edges.
in_pattern | The name of a line pattern, defined in a portfolio that is accessible. |
EdgeAttributeControl& HPS::EdgeAttributeControl::SetWeight | ( | float | in_weight, |
Edge::SizeUnits | in_units = Edge::SizeUnits::ScaleFactor |
||
) |
Sets the weight of lines drawn in edge rendering.
in_weight | The weight value for edges. |
in_units | The units applied to in_weight. |
bool HPS::EdgeAttributeControl::ShowHardAngle | ( | float & | out_angle | ) | const |
Shows the weight of lines drawn in edge rendering.
out_angle | The angle, in degrees, between the adjacent faces necessary for a hard edge. |
bool HPS::EdgeAttributeControl::ShowPattern | ( | UTF8 & | out_pattern_name | ) | const |
Shows the line pattern of the edges.
out_pattern | The name of a line pattern, defined in a portfolio that is accessible. |
bool HPS::EdgeAttributeControl::ShowWeight | ( | float & | out_weight, |
Edge::SizeUnits & | out_units | ||
) | const |
Shows the weight of lines drawn in edge rendering.
out_weight | The weight value for edges. |
out_units | The units applied to in_weight. |
EdgeAttributeControl& HPS::EdgeAttributeControl::UnsetEverything | ( | ) |
Removes all settings from this object.
EdgeAttributeControl& HPS::EdgeAttributeControl::UnsetHardAngle | ( | ) |
Removes the hard edge angle setting.
EdgeAttributeControl& HPS::EdgeAttributeControl::UnsetPattern | ( | ) |
Removes the line pattern setting for edges.
EdgeAttributeControl& HPS::EdgeAttributeControl::UnsetWeight | ( | ) |
Removes the weight setting for edges.