The HPS::SelectabilityKit class is a user space object, useful for carrying a group attribute settings. More...
#include <hps.h>
Public Member Functions | |
SelectabilityKit () | |
Initializes an empty kit. More... | |
SelectabilityKit (SelectabilityKit const &in_kit) | |
The copy constructor creates a new SelectabilityKit object that contains the same settings as the source object. More... | |
SelectabilityKit (SelectabilityKit &&in_that) | |
The move constructor creates a SelectabilityKit by transferring the underlying impl of the rvalue reference to this SelectabilityKit thereby avoiding a copy and allocation. More... | |
SelectabilityKit & | operator= (SelectabilityKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this SelectabilityKit thereby avoiding a copy. More... | |
virtual | ~SelectabilityKit () |
Destroy this kit. More... | |
HPS::Type | ObjectType () const |
void | Set (SelectabilityKit const &in_kit) |
Copies all settings from the source SelectabilityKit into this object. More... | |
void | Show (SelectabilityKit &out_kit) const |
Copies all settings from this SelectabilityKit into the given SelectabilityKit. More... | |
SelectabilityKit & | operator= (SelectabilityKit const &in_kit) |
Copies the source SelectabilityKit into this object. More... | |
bool | Empty () const |
Indicates whether this object has any values set on it. More... | |
bool | Equals (SelectabilityKit const &in_kit) const |
Check if the source SelectabilityKit is equivalent to this object. More... | |
bool | operator== (SelectabilityKit const &in_kit) const |
Check if the source SelectabilityKit is equivalent to this object. More... | |
bool | operator!= (SelectabilityKit const &in_kit) const |
Check if the source SelectabilityKit is not equivalent to this object. More... | |
SelectabilityKit & | SetWindows (Selectability::Value in_val) |
Controls whether windows can be selected by selection actions. More... | |
SelectabilityKit & | SetWindows (bool in_val) |
Controls whether windows can be selected by selection actions. More... | |
SelectabilityKit & | SetEdges (Selectability::Value in_val) |
Controls whether edges can be selected by selection actions. More... | |
SelectabilityKit & | SetEdges (bool in_val) |
Controls whether edges can be selected by selection actions. More... | |
SelectabilityKit & | SetFaces (Selectability::Value in_val) |
Controls whether faces can be selected by selection actions. More... | |
SelectabilityKit & | SetFaces (bool in_val) |
Controls whether faces can be selected by selection actions. More... | |
SelectabilityKit & | SetLights (Selectability::Value in_val) |
Controls whether lights can be selected by selection actions. More... | |
SelectabilityKit & | SetLights (bool in_val) |
Controls whether lights can be selected by selection actions. More... | |
SelectabilityKit & | SetLines (Selectability::Value in_val) |
Controls whether lines can be selected by selection actions. More... | |
SelectabilityKit & | SetLines (bool in_val) |
Controls whether lines can be selected by selection actions. More... | |
SelectabilityKit & | SetMarkers (Selectability::Value in_val) |
Controls whether markers can be selected by selection actions. More... | |
SelectabilityKit & | SetMarkers (bool in_val) |
Controls whether markers can be selected by selection actions. More... | |
SelectabilityKit & | SetVertices (Selectability::Value in_val) |
Controls whether vertices can be selected by selection actions. More... | |
SelectabilityKit & | SetVertices (bool in_val) |
Controls whether vertices can be selected by selection actions. More... | |
SelectabilityKit & | SetText (Selectability::Value in_val) |
Controls whether text can be selected by selection actions. More... | |
SelectabilityKit & | SetText (bool in_val) |
Controls whether text can be selected by selection actions. More... | |
SelectabilityKit & | SetGeometry (Selectability::Value in_val) |
Sets the selectability of all edges, faces, lights, lines, markers, vertices, and text. More... | |
SelectabilityKit & | SetGeometry (bool in_val) |
Sets the selectability of all edges, faces, lights, lines, markers, vertices, and text. More... | |
SelectabilityKit & | SetEverything (Selectability::Value in_val) |
Sets the selectability of all geometry, subgeometry and windows. More... | |
SelectabilityKit & | SetEverything (bool in_val) |
Sets the selectability of all geometry, subgeometry and windows. More... | |
SelectabilityKit & | UnsetWindows () |
Removes the selectability setting from windows. More... | |
SelectabilityKit & | UnsetEdges () |
Removes the selectability setting from edges. More... | |
SelectabilityKit & | UnsetFaces () |
Removes the selectability setting from faces. More... | |
SelectabilityKit & | UnsetLights () |
Removes the selectability setting from lights. More... | |
SelectabilityKit & | UnsetLines () |
Removes the selectability setting from lines. More... | |
SelectabilityKit & | UnsetMarkers () |
Removes the selectability setting from markers. More... | |
SelectabilityKit & | UnsetVertices () |
Removes the selectability setting from vertices. More... | |
SelectabilityKit & | UnsetText () |
Removes the selectability setting from text. More... | |
SelectabilityKit & | UnsetGeometry () |
Removes the selectability settings from edges, faces, lights, lines, markers, vertices, and text. More... | |
SelectabilityKit & | UnsetEverything () |
Removes all settings from this object. More... | |
bool | ShowWindows (Selectability::Value &out_val) const |
Shows whether windows can be selected by selection actions. More... | |
bool | ShowEdges (Selectability::Value &out_val) const |
Shows whether edges can be selected by selection actions. More... | |
bool | ShowFaces (Selectability::Value &out_val) const |
Shows whether faces can be selected by selection actions. More... | |
bool | ShowLights (Selectability::Value &out_val) const |
Shows whether lights can be selected by selection actions. More... | |
bool | ShowLines (Selectability::Value &out_val) const |
Shows whether lines can be selected by selection actions. More... | |
bool | ShowMarkers (Selectability::Value &out_val) const |
Shows whether markers can be selected by selection actions. More... | |
bool | ShowVertices (Selectability::Value &out_val) const |
Shows whether vertices can be selected by selection actions. More... | |
bool | ShowText (Selectability::Value &out_val) const |
Shows whether text can be selected by selection actions. 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 SelectabilityKit | GetDefault () |
Creates a SelectabilityKit 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::SelectabilityKit |
The HPS::SelectabilityKit class is a user space object, useful for carrying a group attribute settings.
Calling HPS::SelectabilityKit::GetDefault() will return a kit with values found in this table.
HPS::SelectabilityKit::SelectabilityKit | ( | ) |
Initializes an empty kit.
HPS::SelectabilityKit::SelectabilityKit | ( | SelectabilityKit const & | in_kit | ) |
The copy constructor creates a new SelectabilityKit object that contains the same settings as the source object.
in_kit | The source object to copy. |
HPS::SelectabilityKit::SelectabilityKit | ( | SelectabilityKit && | in_that | ) |
The move constructor creates a SelectabilityKit by transferring the underlying impl of the rvalue reference to this SelectabilityKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to a SelectabilityKit 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::SelectabilityKit::Equals | ( | SelectabilityKit const & | in_kit | ) | const |
Check if the source SelectabilityKit is equivalent to this object.
in_kit | The source SelectabilityKit to compare to this object. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates a SelectabilityKit 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::SelectabilityKit::operator!= | ( | SelectabilityKit const & | in_kit | ) | const |
Check if the source SelectabilityKit is not equivalent to this object.
in_kit | The source SelectabilityKit to compare to this object. |
SelectabilityKit& HPS::SelectabilityKit::operator= | ( | SelectabilityKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this SelectabilityKit thereby avoiding a copy.
in_that | An rvalue reference to a SelectabilityKit to take the impl from. |
SelectabilityKit& HPS::SelectabilityKit::operator= | ( | SelectabilityKit const & | in_kit | ) |
Copies the source SelectabilityKit into this object.
in_kit | The source SelectabilityKit to copy. |
bool HPS::SelectabilityKit::operator== | ( | SelectabilityKit const & | in_kit | ) | const |
Check if the source SelectabilityKit is equivalent to this object.
in_kit | The source SelectabilityKit 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::SelectabilityKit::Set | ( | SelectabilityKit const & | in_kit | ) |
Copies all settings from the source SelectabilityKit into this object.
in_kit | The source SelectabilityKit to copy. |
SelectabilityKit& HPS::SelectabilityKit::SetEdges | ( | Selectability::Value | in_val | ) |
Controls whether edges can be selected by selection actions.
in_val | The level of selectability. |
SelectabilityKit& HPS::SelectabilityKit::SetEdges | ( | bool | in_val | ) |
Controls whether edges can be selected by selection actions.
in_val | Whether visible edges should be selectable. |
SelectabilityKit& HPS::SelectabilityKit::SetEverything | ( | Selectability::Value | in_val | ) |
Sets the selectability of all geometry, subgeometry and windows.
in_val | The level of selectability. |
SelectabilityKit& HPS::SelectabilityKit::SetEverything | ( | bool | in_val | ) |
Sets the selectability of all geometry, subgeometry and windows.
in_val | Whether everything visible should be selectable. |
SelectabilityKit& HPS::SelectabilityKit::SetFaces | ( | Selectability::Value | in_val | ) |
Controls whether faces can be selected by selection actions.
in_val | The level of selectability. |
SelectabilityKit& HPS::SelectabilityKit::SetFaces | ( | bool | in_val | ) |
Controls whether faces can be selected by selection actions.
in_val | Whether visible faces should be selectable. |
SelectabilityKit& HPS::SelectabilityKit::SetGeometry | ( | Selectability::Value | in_val | ) |
Sets the selectability of all edges, faces, lights, lines, markers, vertices, and text.
in_val | The level of selectability. |
SelectabilityKit& HPS::SelectabilityKit::SetGeometry | ( | bool | in_val | ) |
Sets the selectability of all edges, faces, lights, lines, markers, vertices, and text.
in_val | Whether visible geometry should be selectable. |
SelectabilityKit& HPS::SelectabilityKit::SetLights | ( | Selectability::Value | in_val | ) |
Controls whether lights can be selected by selection actions.
in_val | The level of selectability. |
SelectabilityKit& HPS::SelectabilityKit::SetLights | ( | bool | in_val | ) |
Controls whether lights can be selected by selection actions.
in_val | Whether visible lights should be selectable. |
SelectabilityKit& HPS::SelectabilityKit::SetLines | ( | Selectability::Value | in_val | ) |
Controls whether lines can be selected by selection actions.
in_val | The level of selectability. |
SelectabilityKit& HPS::SelectabilityKit::SetLines | ( | bool | in_val | ) |
Controls whether lines can be selected by selection actions.
in_val | Whether visible lines should be selectable. |
SelectabilityKit& HPS::SelectabilityKit::SetMarkers | ( | Selectability::Value | in_val | ) |
Controls whether markers can be selected by selection actions.
in_val | The level of selectability. |
SelectabilityKit& HPS::SelectabilityKit::SetMarkers | ( | bool | in_val | ) |
Controls whether markers can be selected by selection actions.
in_val | Whether visible markers should be selectable. |
SelectabilityKit& HPS::SelectabilityKit::SetText | ( | Selectability::Value | in_val | ) |
Controls whether text can be selected by selection actions.
in_val | The level of selectability. |
SelectabilityKit& HPS::SelectabilityKit::SetText | ( | bool | in_val | ) |
Controls whether text can be selected by selection actions.
in_val | Whether visible text should be selectable. |
SelectabilityKit& HPS::SelectabilityKit::SetVertices | ( | Selectability::Value | in_val | ) |
Controls whether vertices can be selected by selection actions.
in_val | The level of selectability. |
SelectabilityKit& HPS::SelectabilityKit::SetVertices | ( | bool | in_val | ) |
Controls whether vertices can be selected by selection actions.
in_val | Whether visible vertices should be selectable. |
SelectabilityKit& HPS::SelectabilityKit::SetWindows | ( | Selectability::Value | in_val | ) |
Controls whether windows can be selected by selection actions.
in_val | The level of selectability. |
SelectabilityKit& HPS::SelectabilityKit::SetWindows | ( | bool | in_val | ) |
Controls whether windows can be selected by selection actions.
in_val | Whether visible windows should be selectable. |
void HPS::SelectabilityKit::Show | ( | SelectabilityKit & | out_kit | ) | const |
Copies all settings from this SelectabilityKit into the given SelectabilityKit.
out_kit | The SelectabilityKit to populate with the contents of this object. |
bool HPS::SelectabilityKit::ShowEdges | ( | Selectability::Value & | out_val | ) | const |
Shows whether edges can be selected by selection actions.
out_val | The level of selectability. |
bool HPS::SelectabilityKit::ShowFaces | ( | Selectability::Value & | out_val | ) | const |
Shows whether faces can be selected by selection actions.
out_val | The level of selectability. |
bool HPS::SelectabilityKit::ShowLights | ( | Selectability::Value & | out_val | ) | const |
Shows whether lights can be selected by selection actions.
out_val | The level of selectability. |
bool HPS::SelectabilityKit::ShowLines | ( | Selectability::Value & | out_val | ) | const |
Shows whether lines can be selected by selection actions.
out_val | The level of selectability. |
bool HPS::SelectabilityKit::ShowMarkers | ( | Selectability::Value & | out_val | ) | const |
Shows whether markers can be selected by selection actions.
out_val | The level of selectability. |
bool HPS::SelectabilityKit::ShowText | ( | Selectability::Value & | out_val | ) | const |
Shows whether text can be selected by selection actions.
out_val | The level of selectability. |
bool HPS::SelectabilityKit::ShowVertices | ( | Selectability::Value & | out_val | ) | const |
Shows whether vertices can be selected by selection actions.
out_val | The level of selectability. |
bool HPS::SelectabilityKit::ShowWindows | ( | Selectability::Value & | out_val | ) | const |
Shows whether windows can be selected by selection actions.
out_val | The level of selectability. |
|
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.
SelectabilityKit& HPS::SelectabilityKit::UnsetEdges | ( | ) |
Removes the selectability setting from edges.
SelectabilityKit& HPS::SelectabilityKit::UnsetEverything | ( | ) |
Removes all settings from this object.
SelectabilityKit& HPS::SelectabilityKit::UnsetFaces | ( | ) |
Removes the selectability setting from faces.
SelectabilityKit& HPS::SelectabilityKit::UnsetGeometry | ( | ) |
Removes the selectability settings from edges, faces, lights, lines, markers, vertices, and text.
SelectabilityKit& HPS::SelectabilityKit::UnsetLights | ( | ) |
Removes the selectability setting from lights.
SelectabilityKit& HPS::SelectabilityKit::UnsetLines | ( | ) |
Removes the selectability setting from lines.
SelectabilityKit& HPS::SelectabilityKit::UnsetMarkers | ( | ) |
Removes the selectability setting from markers.
SelectabilityKit& HPS::SelectabilityKit::UnsetText | ( | ) |
Removes the selectability setting from text.
SelectabilityKit& HPS::SelectabilityKit::UnsetVertices | ( | ) |
Removes the selectability setting from vertices.
SelectabilityKit& HPS::SelectabilityKit::UnsetWindows | ( | ) |
Removes the selectability setting from windows.
|
static |