The HPS::ContourLineKit class is a user space object, useful for carrying a group of attribute settings. More...
#include <hps.h>
Public Member Functions | |
ContourLineKit () | |
Initializes an empty kit. More... | |
ContourLineKit (ContourLineKit const &in_kit) | |
The copy constructor creates a new ContourLineKit object that contains the same settings as the source object. More... | |
ContourLineKit (ContourLineKit &&in_that) | |
The move constructor creates a ContourLineKit by transferring the underlying impl of the rvalue reference to this ContourLineKit thereby avoiding a copy and allocation. More... | |
ContourLineKit & | operator= (ContourLineKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this ContourLineKit thereby avoiding a copy. More... | |
virtual | ~ContourLineKit () |
Destroy this kit. More... | |
HPS::Type | ObjectType () const |
void | Set (ContourLineKit const &in_kit) |
Copies the source ContourLineKit into this object. More... | |
void | Show (ContourLineKit &out_kit) const |
Copies this object into the given ContourLineKit. More... | |
ContourLineKit & | operator= (ContourLineKit const &in_kit) |
Copies the source ContourLineKit into this object. More... | |
bool | Empty () const |
Indicates whether this object has any values set on it. More... | |
bool | Equals (ContourLineKit const &in_kit) const |
Check if the source ContourLineKit is equivalent to this object. More... | |
bool | operator== (ContourLineKit const &in_kit) const |
Check if the source ContourLineKit is equivalent to this object. More... | |
bool | operator!= (ContourLineKit const &in_kit) const |
Check if the source ContourLineKit is not equivalent to this object. More... | |
ContourLineKit & | SetVisibility (bool in_state) |
Determines whether contour lines should be rendered. More... | |
ContourLineKit & | SetPositions (float in_interval, float in_offset) |
Controls the positioning of contour lines. More... | |
ContourLineKit & | SetPositions (FloatArray const &in_positions) |
Controls the positioning of contour lines. More... | |
ContourLineKit & | SetPositions (size_t in_count, float const in_positions[]) |
Controls the positioning of contour lines. More... | |
ContourLineKit & | SetColors (RGBColorArray const &in_colors) |
Sets the colors to be used for drawing contour lines. More... | |
ContourLineKit & | SetColors (size_t in_count, RGBColor const in_colors[]) |
Sets the colors to be used for drawing contour lines. More... | |
ContourLineKit & | SetColors (RGBColor const &in_color) |
Sets the color to be used for drawing all contour lines. More... | |
ContourLineKit & | SetPatterns (UTF8Array const &in_patterns) |
Sets the line patterns to be used for drawing contour lines. More... | |
ContourLineKit & | SetPatterns (size_t in_count, UTF8 const in_patterns[]) |
Sets the line patterns to be used for drawing contour lines. More... | |
ContourLineKit & | SetPatterns (char const *in_pattern) |
Sets the line pattern to be used for drawing all contour lines. More... | |
ContourLineKit & | SetWeights (FloatArray const &in_weights, LineSizeUnitsArray const &in_units) |
Sets the line weights to be used for drawing contour lines. More... | |
ContourLineKit & | SetWeights (size_t in_count, float const in_weights[], Line::SizeUnits const in_units[]) |
Sets the line weights to be used for drawing contour lines. More... | |
ContourLineKit & | SetWeights (float in_weight, Line::SizeUnits in_units=Line::SizeUnits::ScaleFactor) |
Sets the line weight to be used for drawing all contour lines. More... | |
ContourLineKit & | SetLighting (bool in_state) |
Controls whether contour lines are lit. More... | |
ContourLineKit & | UnsetVisibility () |
Removes the contour line visibility setting. More... | |
ContourLineKit & | UnsetPositions () |
Removes the contour line positions setting. More... | |
ContourLineKit & | UnsetColors () |
Removes the contour line colors setting. More... | |
ContourLineKit & | UnsetPatterns () |
Removes the contour line patterns setting. More... | |
ContourLineKit & | UnsetWeights () |
Removes the contour line weights setting. More... | |
ContourLineKit & | UnsetLighting () |
Removes the contour line lighting setting. More... | |
ContourLineKit & | UnsetEverything () |
Removes all settings from this object. More... | |
bool | ShowVisibility (bool &out_state) const |
Shows the visibility state of contour lines. More... | |
bool | ShowPositions (ContourLine::Mode &out_mode, FloatArray &out_positions) const |
Shows the positions of contour lines. More... | |
bool | ShowColors (RGBColorArray &out_colors) const |
Shows the colors of contour lines. More... | |
bool | ShowPatterns (UTF8Array &out_patterns) const |
Shows the line patterns of contour lines. More... | |
bool | ShowWeights (FloatArray &out_weights, LineSizeUnitsArray &out_units) const |
Shows the line weights of contour lines. More... | |
bool | ShowLighting (bool &out_state) const |
Shows whether contour lines should be lit. 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 ContourLineKit | GetDefault () |
Creates a ContourLineKit 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::ContourLineKit |
The HPS::ContourLineKit class is a user space object, useful for carrying a group of attribute settings.
Calling HPS::ContourLineKit::GetDefault() will return a kit with values found in this table.
HPS::ContourLineKit::ContourLineKit | ( | ) |
Initializes an empty kit.
HPS::ContourLineKit::ContourLineKit | ( | ContourLineKit const & | in_kit | ) |
The copy constructor creates a new ContourLineKit object that contains the same settings as the source object.
in_kit | The source object to copy. |
HPS::ContourLineKit::ContourLineKit | ( | ContourLineKit && | in_that | ) |
The move constructor creates a ContourLineKit by transferring the underlying impl of the rvalue reference to this ContourLineKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to a ContourLineKit 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::ContourLineKit::Equals | ( | ContourLineKit const & | in_kit | ) | const |
Check if the source ContourLineKit is equivalent to this object.
in_kit | The source ContourLineKit to compare to this object. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates a ContourLineKit 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::ContourLineKit::operator!= | ( | ContourLineKit const & | in_kit | ) | const |
Check if the source ContourLineKit is not equivalent to this object.
in_kit | The source ContourLineKit to compare to this object. |
ContourLineKit& HPS::ContourLineKit::operator= | ( | ContourLineKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this ContourLineKit thereby avoiding a copy.
in_that | An rvalue reference to a ContourLineKit to take the impl from. |
ContourLineKit& HPS::ContourLineKit::operator= | ( | ContourLineKit const & | in_kit | ) |
Copies the source ContourLineKit into this object.
in_kit | The source ContourLineKit to copy. |
bool HPS::ContourLineKit::operator== | ( | ContourLineKit const & | in_kit | ) | const |
Check if the source ContourLineKit is equivalent to this object.
in_kit | The source ContourLineKit 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::ContourLineKit::Set | ( | ContourLineKit const & | in_kit | ) |
Copies the source ContourLineKit into this object.
in_kit | The source object to copy. |
ContourLineKit& HPS::ContourLineKit::SetColors | ( | RGBColorArray const & | in_colors | ) |
Sets the colors to be used for drawing contour lines.
If there are more contour lines than colors, the array will be cycled through.
in_colors | An array of colors to be used for drawing contour lines. |
ContourLineKit& HPS::ContourLineKit::SetColors | ( | size_t | in_count, |
RGBColor const | in_colors[] | ||
) |
Sets the colors to be used for drawing contour lines.
If there are more contour lines than colors, the array will be cycled through.
in_count | The number of elements in in_colors. |
in_colors | An array of colors to be used for drawing contour lines. |
ContourLineKit& HPS::ContourLineKit::SetColors | ( | RGBColor const & | in_color | ) |
Sets the color to be used for drawing all contour lines.
in_color | The color to be used for drawing all contour lines |
ContourLineKit& HPS::ContourLineKit::SetLighting | ( | bool | in_state | ) |
Controls whether contour lines are lit.
in_state | Whether contour lines are lit. |
ContourLineKit& HPS::ContourLineKit::SetPatterns | ( | UTF8Array const & | in_patterns | ) |
Sets the line patterns to be used for drawing contour lines.
If there are more contour lines than patterns, the array will be cycled through.
in_patterns | An array of line pattern names, defined in an accessible portfolio, to be used for drawing contour lines. |
ContourLineKit& HPS::ContourLineKit::SetPatterns | ( | size_t | in_count, |
UTF8 const | in_patterns[] | ||
) |
Sets the line patterns to be used for drawing contour lines.
If there are more contour lines than patterns, the array will be cycled through.
in_count | The number of elements in in_patterns. |
in_patterns | An array of line pattern names, defined in an accessible portfolio, to be used for drawing contour lines. |
ContourLineKit& HPS::ContourLineKit::SetPatterns | ( | char const * | in_pattern | ) |
Sets the line pattern to be used for drawing all contour lines.
in_pattern | The line pattern name, defined in an accessible portfolio, to be used for drawing all contour lines. |
ContourLineKit& HPS::ContourLineKit::SetPositions | ( | float | in_interval, |
float | in_offset | ||
) |
Controls the positioning of contour lines.
This variant creates them at regular intervals with an optional offset.
in_interval | The number of units between contour lines. |
in_offset | The starting point for contour lines. |
ContourLineKit& HPS::ContourLineKit::SetPositions | ( | FloatArray const & | in_positions | ) |
Controls the positioning of contour lines.
This variant defines explicit locations that contour lines should appear at.
in_positions | An array of explicit locations to draw contour lines. |
ContourLineKit& HPS::ContourLineKit::SetPositions | ( | size_t | in_count, |
float const | in_positions[] | ||
) |
Controls the positioning of contour lines.
This variant defines explicit locations that contour lines should appear at.
in_count | The number of elements in in_positions. |
in_positions | An array of explicit locations to draw contour lines. |
ContourLineKit& HPS::ContourLineKit::SetVisibility | ( | bool | in_state | ) |
Determines whether contour lines should be rendered.
in_state | Whether contour lines should be rendered. |
ContourLineKit& HPS::ContourLineKit::SetWeights | ( | FloatArray const & | in_weights, |
LineSizeUnitsArray const & | in_units | ||
) |
Sets the line weights to be used for drawing contour lines.
If there are more contour lines than weights, the array will be cycled through.
in_weights | An array of line weights to be applied to contour lines. |
in_units | An array of line weight units used with the corresponding entry in in_weights. |
ContourLineKit& HPS::ContourLineKit::SetWeights | ( | size_t | in_count, |
float const | in_weights[], | ||
Line::SizeUnits const | in_units[] | ||
) |
Sets the line weights to be used for drawing contour lines.
If there are more contour lines than weights, the array will be cycled through.
in_count | The number of elements in both in_weights and in_units. |
in_weights | An array of line weights to be applied to contour lines. |
in_units | An array of line weight units used with the corresponding entry in in_weights. |
ContourLineKit& HPS::ContourLineKit::SetWeights | ( | float | in_weight, |
Line::SizeUnits | in_units = Line::SizeUnits::ScaleFactor |
||
) |
Sets the line weight to be used for drawing all contour lines.
in_weight | The line weight to be used for drawing all contour lines. |
in_units | The units associated with in_weight. |
void HPS::ContourLineKit::Show | ( | ContourLineKit & | out_kit | ) | const |
Copies this object into the given ContourLineKit.
out_kit | The ContourLineKit to populate with the contents of this object. |
bool HPS::ContourLineKit::ShowColors | ( | RGBColorArray & | out_colors | ) | const |
Shows the colors of contour lines.
out_colors | An array of colors of contour lines |
bool HPS::ContourLineKit::ShowLighting | ( | bool & | out_state | ) | const |
Shows whether contour lines should be lit.
out_state | Whether contour lines should be lit. |
bool HPS::ContourLineKit::ShowPatterns | ( | UTF8Array & | out_patterns | ) | const |
Shows the line patterns of contour lines.
out_patterns | An array of line pattern names for contour lines. |
bool HPS::ContourLineKit::ShowPositions | ( | ContourLine::Mode & | out_mode, |
FloatArray & | out_positions | ||
) | const |
Shows the positions of contour lines.
out_mode | Whether the positions repeat at some interval or are an explicit list. |
out_positions | If out_mode is Repeating, this will contain the interval and offset, in that order. Otherwise it will contain the explicit list specified. |
bool HPS::ContourLineKit::ShowVisibility | ( | bool & | out_state | ) | const |
Shows the visibility state of contour lines.
out_state | Whether contour lines should be rendered. |
bool HPS::ContourLineKit::ShowWeights | ( | FloatArray & | out_weights, |
LineSizeUnitsArray & | out_units | ||
) | const |
Shows the line weights of contour lines.
out_weights | An array of line weights for contour lines. |
out_units | An array of line weight units, each is applied to the corresponding entry in out_weights |
|
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.
ContourLineKit& HPS::ContourLineKit::UnsetColors | ( | ) |
Removes the contour line colors setting.
ContourLineKit& HPS::ContourLineKit::UnsetEverything | ( | ) |
Removes all settings from this object.
ContourLineKit& HPS::ContourLineKit::UnsetLighting | ( | ) |
Removes the contour line lighting setting.
ContourLineKit& HPS::ContourLineKit::UnsetPatterns | ( | ) |
Removes the contour line patterns setting.
ContourLineKit& HPS::ContourLineKit::UnsetPositions | ( | ) |
Removes the contour line positions setting.
ContourLineKit& HPS::ContourLineKit::UnsetVisibility | ( | ) |
Removes the contour line visibility setting.
ContourLineKit& HPS::ContourLineKit::UnsetWeights | ( | ) |
Removes the contour line weights setting.
|
static |