The HPS::EdgeAttributeKit class is a user space object, useful for carrying a group attribute settings. More...
#include <hps.h>
Public Member Functions | |
EdgeAttributeKit () | |
Initializes an empty kit. More... | |
EdgeAttributeKit (EdgeAttributeKit const &in_kit) | |
The copy constructor creates a new EdgeAttributeKit object that contains the same settings as the source object. More... | |
EdgeAttributeKit (EdgeAttributeKit &&in_that) | |
The move constructor creates an EdgeAttributeKit by transferring the underlying impl of the rvalue reference to this EdgeAttributeKit thereby avoiding a copy and allocation. More... | |
EdgeAttributeKit & | operator= (EdgeAttributeKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this EdgeAttributeKit thereby avoiding a copy. More... | |
virtual | ~EdgeAttributeKit () |
Destroy this kit. More... | |
HPS::Type | ObjectType () const |
void | Set (EdgeAttributeKit const &in_kit) |
Copies all settings from the source EdgeAttributeKit into this object. More... | |
void | Show (EdgeAttributeKit &out_kit) const |
Copies all settings from this EdgeAttributeKit into the given EdgeAttributeKit. More... | |
EdgeAttributeKit & | operator= (EdgeAttributeKit const &in_kit) |
Copies the source EdgeAttributeKit into this object. More... | |
bool | Empty () const |
Indicates whether this object has any values set on it. More... | |
bool | Equals (EdgeAttributeKit const &in_kit) const |
Check if the source EdgeAttributeKit is equivalent to this object. More... | |
bool | operator== (EdgeAttributeKit const &in_kit) const |
Check if the source EdgeAttributeKit is equivalent to this object. More... | |
bool | operator!= (EdgeAttributeKit const &in_kit) const |
Check if the source EdgeAttributeKit is not equivalent to this object. More... | |
EdgeAttributeKit & | SetPattern (char const *in_pattern_name) |
Specifies the pattern of edges. More... | |
EdgeAttributeKit & | SetWeight (float in_weight, Edge::SizeUnits in_units=Edge::SizeUnits::ScaleFactor) |
Sets the weight of lines drawn in edge rendering. More... | |
EdgeAttributeKit & | SetHardAngle (float in_angle) |
Sets the angle between adjacent faces necessary for the edge between them to be considered a hard edge. More... | |
EdgeAttributeKit & | UnsetPattern () |
Removes the line pattern setting for edges. More... | |
EdgeAttributeKit & | UnsetWeight () |
Removes the weight setting for edges. More... | |
EdgeAttributeKit & | UnsetHardAngle () |
Removes the hard edge angle setting. More... | |
EdgeAttributeKit & | UnsetEverything () |
Removes all settings from this object. More... | |
bool | ShowPattern (UTF8 &out_pattern_name) const |
Shows the line pattern of the edges. More... | |
bool | ShowWeight (float &out_weight, Edge::SizeUnits &out_units) const |
Shows the weight of lines drawn in edge rendering. More... | |
bool | ShowHardAngle (float &out_angle) const |
Shows the weight of lines drawn in edge rendering. More... | |
virtual HPS::Type | Type () const |
This function returns the true type of the underlying object. More... | |
virtual void | Reset () |
Resets this object to its initial, uninitialized state. More... | |
bool | HasType (HPS::Type in_mask) const |
This function indicates whether this Object has the given Type mask. More... | |
intptr_t | GetClassID () const |
Returns a unique identifier that is shared by all objects of the same class. More... | |
intptr_t | GetInstanceID () const |
Returns an identifier that can be used to identify which instance of a class an object is. More... | |
Static Public Member Functions | |
static EdgeAttributeKit | GetDefault () |
Creates a EdgeAttributeKit which contains the default settings. More... | |
template<typename T > | |
static intptr_t | ClassID () |
Unique identifier for this class. More... | |
Static Public Attributes | |
static const HPS::Type | staticType = HPS::Type::EdgeAttributeKit |
The HPS::EdgeAttributeKit class is a user space object, useful for carrying a group attribute settings.
Calling HPS::EdgeAttributeKit::GetDefault() will return a kit with values found in this table.
HPS::EdgeAttributeKit::EdgeAttributeKit | ( | ) |
Initializes an empty kit.
HPS::EdgeAttributeKit::EdgeAttributeKit | ( | EdgeAttributeKit const & | in_kit | ) |
The copy constructor creates a new EdgeAttributeKit object that contains the same settings as the source object.
in_kit | The source object to copy. |
HPS::EdgeAttributeKit::EdgeAttributeKit | ( | EdgeAttributeKit && | in_that | ) |
The move constructor creates an EdgeAttributeKit by transferring the underlying impl of the rvalue reference to this EdgeAttributeKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to an EdgeAttributeKit to take the impl from. |
|
virtual |
Destroy this kit.
|
inlinestaticinherited |
Unique identifier for this class.
Note: this method uses construction of static objects. If used in a constructor, it should be used in the body not the initializer list.
|
virtual |
Indicates whether this object has any values set on it.
Reimplemented from HPS::Object.
bool HPS::EdgeAttributeKit::Equals | ( | EdgeAttributeKit const & | in_kit | ) | const |
Check if the source EdgeAttributeKit is equivalent to this object.
in_kit | The source EdgeAttributeKit to compare to this object. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates a EdgeAttributeKit which contains the default settings.
The returned object will not necessarily have values set for every option, but it will have settings for those options where it is reasonable to have a default.
|
inherited |
Returns an identifier that can be used to identify which instance of a class an object is.
Different keys and controls will return the same value if they are backed by the same database resource.
|
inherited |
|
inlinevirtual |
bool HPS::EdgeAttributeKit::operator!= | ( | EdgeAttributeKit const & | in_kit | ) | const |
Check if the source EdgeAttributeKit is not equivalent to this object.
in_kit | The source EdgeAttributeKit to compare to this object. |
EdgeAttributeKit& HPS::EdgeAttributeKit::operator= | ( | EdgeAttributeKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this EdgeAttributeKit thereby avoiding a copy.
in_that | An rvalue reference to an EdgeAttributeKit to take the impl from. |
EdgeAttributeKit& HPS::EdgeAttributeKit::operator= | ( | EdgeAttributeKit const & | in_kit | ) |
Copies the source EdgeAttributeKit into this object.
in_kit | The source EdgeAttributeKit to copy. |
bool HPS::EdgeAttributeKit::operator== | ( | EdgeAttributeKit const & | in_kit | ) | const |
Check if the source EdgeAttributeKit is equivalent to this object.
in_kit | The source EdgeAttributeKit to compare to this object. |
|
virtualinherited |
Resets this object to its initial, uninitialized state.
Reimplemented in HPS::EventHandler, HPS::EventDispatcher, HPS::World, HPS::HighlightSearchResults, HPS::HighlightSearchResultsIterator, HPS::SelectionResults, HPS::SelectionResultsIterator, HPS::FontSearchResults, HPS::FontSearchResultsIterator, HPS::SearchResults, and HPS::SearchResultsIterator.
void HPS::EdgeAttributeKit::Set | ( | EdgeAttributeKit const & | in_kit | ) |
Copies all settings from the source EdgeAttributeKit into this object.
in_kit | The source EdgeAttributeKit to copy. |
EdgeAttributeKit& HPS::EdgeAttributeKit::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. |
EdgeAttributeKit& HPS::EdgeAttributeKit::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. |
EdgeAttributeKit& HPS::EdgeAttributeKit::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. |
void HPS::EdgeAttributeKit::Show | ( | EdgeAttributeKit & | out_kit | ) | const |
Copies all settings from this EdgeAttributeKit into the given EdgeAttributeKit.
out_kit | The EdgeAttributeKit to populate with the contents of this object. |
bool HPS::EdgeAttributeKit::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::EdgeAttributeKit::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::EdgeAttributeKit::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. |
|
inlinevirtualinherited |
This function returns the true type of the underlying object.
This function is useful for finding the type of smart pointer objects that have been cast to more generic types.
Reimplemented from HPS::Object.
EdgeAttributeKit& HPS::EdgeAttributeKit::UnsetEverything | ( | ) |
Removes all settings from this object.
EdgeAttributeKit& HPS::EdgeAttributeKit::UnsetHardAngle | ( | ) |
Removes the hard edge angle setting.
EdgeAttributeKit& HPS::EdgeAttributeKit::UnsetPattern | ( | ) |
Removes the line pattern setting for edges.
EdgeAttributeKit& HPS::EdgeAttributeKit::UnsetWeight | ( | ) |
Removes the weight setting for edges.
|
static |