The HPS::MarkerAttributeKit class is a user space object, useful for carrying a group attribute settings. More...
#include <hps.h>
Public Member Functions | |
MarkerAttributeKit () | |
Initializes an empty kit. More... | |
MarkerAttributeKit (MarkerAttributeKit const &in_kit) | |
The copy constructor creates a new MarkerAttributeKit object that contains the same settings as the source object. More... | |
MarkerAttributeKit (MarkerAttributeKit &&in_that) | |
The move constructor creates a MarkerAttributeKit by transferring the underlying impl of the rvalue reference to this MarkerAttributeKit thereby avoiding a copy and allocation. More... | |
MarkerAttributeKit & | operator= (MarkerAttributeKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this MarkerAttributeKit thereby avoiding a copy. More... | |
virtual | ~MarkerAttributeKit () |
Destroy this kit. More... | |
HPS::Type | ObjectType () const |
void | Set (MarkerAttributeKit const &in_kit) |
Copies all settings from the source MarkerAttributeKit into this object. More... | |
void | Show (MarkerAttributeKit &out_kit) const |
Copies all settings from this MarkerAttributeKit into the given MarkerAttributeKit. More... | |
MarkerAttributeKit & | operator= (MarkerAttributeKit const &in_kit) |
Copies the source MarkerAttributeKit into this object. More... | |
bool | Empty () const |
Indicates whether this object has any values set on it. More... | |
bool | Equals (MarkerAttributeKit const &in_kit) const |
Check if the source MarkerAttributeKit is equivalent to this object. More... | |
bool | operator== (MarkerAttributeKit const &in_kit) const |
Check if the source MarkerAttributeKit is equivalent to this object. More... | |
bool | operator!= (MarkerAttributeKit const &in_kit) const |
Check if the source MarkerAttributeKit is not equivalent to this object. More... | |
MarkerAttributeKit & | SetSymbol (char const *in_glyph_name) |
Sets the glyph used to represent markers. More... | |
MarkerAttributeKit & | SetSize (float in_size, Marker::SizeUnits in_units=Marker::SizeUnits::ScaleFactor) |
Sets the size of markers. More... | |
MarkerAttributeKit & | SetDrawingPreference (Marker::DrawingPreference in_preference) |
Sets the drawing method for markers. More... | |
MarkerAttributeKit & | UnsetSymbol () |
Removes the marker symbol setting. More... | |
MarkerAttributeKit & | UnsetSize () |
Removes the marker size setting. More... | |
MarkerAttributeKit & | UnsetDrawingPreference () |
Removes the drawing preference setting. More... | |
MarkerAttributeKit & | UnsetEverything () |
Removes all settings from this object. More... | |
bool | ShowSymbol (UTF8 &out_glyph_name) const |
Shows the glyph that should be used to draw markers. More... | |
bool | ShowSize (float &out_size, Marker::SizeUnits &out_units) const |
Shows the size of markers. More... | |
bool | ShowDrawingPreference (Marker::DrawingPreference &out_preference) const |
Shows the drawing method for markers. 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 MarkerAttributeKit | GetDefault () |
Creates a MarkerAttributeKit 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::MarkerAttributeKit |
The HPS::MarkerAttributeKit class is a user space object, useful for carrying a group attribute settings.
Calling HPS::MarkerAttributeKit::GetDefault() will return a kit with values found in this table.
HPS::MarkerAttributeKit::MarkerAttributeKit | ( | ) |
Initializes an empty kit.
HPS::MarkerAttributeKit::MarkerAttributeKit | ( | MarkerAttributeKit const & | in_kit | ) |
The copy constructor creates a new MarkerAttributeKit object that contains the same settings as the source object.
in_kit | The source object to copy. |
HPS::MarkerAttributeKit::MarkerAttributeKit | ( | MarkerAttributeKit && | in_that | ) |
The move constructor creates a MarkerAttributeKit by transferring the underlying impl of the rvalue reference to this MarkerAttributeKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to a MarkerAttributeKit 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::MarkerAttributeKit::Equals | ( | MarkerAttributeKit const & | in_kit | ) | const |
Check if the source MarkerAttributeKit is equivalent to this object.
in_kit | The source MarkerAttributeKit to compare to this object. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates a MarkerAttributeKit 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::MarkerAttributeKit::operator!= | ( | MarkerAttributeKit const & | in_kit | ) | const |
Check if the source MarkerAttributeKit is not equivalent to this object.
in_kit | The source MarkerAttributeKit to compare to this object. |
MarkerAttributeKit& HPS::MarkerAttributeKit::operator= | ( | MarkerAttributeKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this MarkerAttributeKit thereby avoiding a copy.
in_that | An rvalue reference to a MarkerAttributeKit to take the impl from. |
MarkerAttributeKit& HPS::MarkerAttributeKit::operator= | ( | MarkerAttributeKit const & | in_kit | ) |
Copies the source MarkerAttributeKit into this object.
in_kit | The source MarkerAttributeKit to copy. |
bool HPS::MarkerAttributeKit::operator== | ( | MarkerAttributeKit const & | in_kit | ) | const |
Check if the source MarkerAttributeKit is equivalent to this object.
in_kit | The source MarkerAttributeKit 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::MarkerAttributeKit::Set | ( | MarkerAttributeKit const & | in_kit | ) |
Copies all settings from the source MarkerAttributeKit into this object.
in_kit | The source MarkerAttributeKit to copy. |
MarkerAttributeKit& HPS::MarkerAttributeKit::SetDrawingPreference | ( | Marker::DrawingPreference | in_preference | ) |
Sets the drawing method for markers.
Fastest will draw at requested size, unless that would incur performance cost. Nicest will anyway.
in_preference | The preferred drawing style. |
MarkerAttributeKit& HPS::MarkerAttributeKit::SetSize | ( | float | in_size, |
Marker::SizeUnits | in_units = Marker::SizeUnits::ScaleFactor |
||
) |
Sets the size of markers.
in_size | The size for markers. |
in_units | The units of the size for markers. |
MarkerAttributeKit& HPS::MarkerAttributeKit::SetSymbol | ( | char const * | in_glyph_name | ) |
Sets the glyph used to represent markers.
in_glyph_name | A UTF8 encoded name of a glyph, defined in an accessible portfolio. |
void HPS::MarkerAttributeKit::Show | ( | MarkerAttributeKit & | out_kit | ) | const |
Copies all settings from this MarkerAttributeKit into the given MarkerAttributeKit.
out_kit | The MarkerAttributeKit to populate with the contents of this object. |
bool HPS::MarkerAttributeKit::ShowDrawingPreference | ( | Marker::DrawingPreference & | out_preference | ) | const |
Shows the drawing method for markers.
out_preference | The preferred drawing style. return true if the setting is valid, false otherwise. |
bool HPS::MarkerAttributeKit::ShowSize | ( | float & | out_size, |
Marker::SizeUnits & | out_units | ||
) | const |
Shows the size of markers.
out_size | The size for markers. |
out_units | The units of the size for markers. |
bool HPS::MarkerAttributeKit::ShowSymbol | ( | UTF8 & | out_glyph_name | ) | const |
Shows the glyph that should be used to draw markers.
out_glyph_name | A UTF8 encoded name of a glyph, defined in an accessible portfolio. |
|
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.
MarkerAttributeKit& HPS::MarkerAttributeKit::UnsetDrawingPreference | ( | ) |
Removes the drawing preference setting.
MarkerAttributeKit& HPS::MarkerAttributeKit::UnsetEverything | ( | ) |
Removes all settings from this object.
MarkerAttributeKit& HPS::MarkerAttributeKit::UnsetSize | ( | ) |
Removes the marker size setting.
MarkerAttributeKit& HPS::MarkerAttributeKit::UnsetSymbol | ( | ) |
Removes the marker symbol setting.
|
static |