The LineKit class is a user space object. More...
#include <hps.h>
Public Member Functions | |
LineKit () | |
The default constructor creates an empty LineKit object. More... | |
LineKit (LineKit const &in_kit) | |
The copy constructor creates a new LineKit object that contains the same settings as the source LineKit. More... | |
LineKit (LineKit &&in_that) | |
The move constructor creates a LineKit by transferring the underlying impl of the rvalue reference to this LineKit thereby avoiding a copy and allocation. More... | |
LineKit & | operator= (LineKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this LineKit thereby avoiding a copy. More... | |
virtual | ~LineKit () |
HPS::Type | ObjectType () const |
void | Consume (LineKit &in_kit) |
Copies the source LineKit into this LineKit and resets the source kit. More... | |
void | Set (LineKit const &in_kit) |
Copies the source LineKit into this LineKit. More... | |
void | Show (LineKit &out_kit) const |
Copies this LineKit into the given LineKit. More... | |
LineKit & | operator= (LineKit const &in_kit) |
Copies the source LineKit into this LineKit. More... | |
bool | Empty () const |
Indicates whether this LineKit has any values set on it. More... | |
bool | Equals (LineKit const &in_kit) const |
Check if the source LineKit is equivalent to this LineKit. More... | |
bool | operator== (LineKit const &in_kit) const |
Check if the source LineKit is equivalent to this LineKit. More... | |
bool | operator!= (LineKit const &in_kit) const |
Check if the source LineKit is not equivalent to this LineKit. More... | |
size_t | GetPointCount () const |
Retrieves the number of points in this line. More... | |
LineKit & | SetPriority (int in_priority) |
Assigns a specific drawing priority value to the LineKit. More... | |
LineKit & | UnsetPriority () |
Removes a drawing priority setting. More... | |
bool | ShowPriority (int &out_priority) const |
Shows the drawing priority. More... | |
LineKit & | SetPoints (PointArray const &in_points) |
Sets the points for this LineKit. More... | |
LineKit & | SetPoints (size_t in_count, Point const in_points []) |
Sets the points for this LineKit. More... | |
LineKit & | UnsetPoints () |
Removes the points for this LineKit. More... | |
LineKit & | UnsetEverything () |
Removes all settings from the LineKit. More... | |
bool | ShowPoints (PointArray &out_points) const |
Shows the points for this LineKit. More... | |
bool | ShowPointsByRange (size_t in_start_index, size_t in_count, PointArray &out_points) const |
Show a subset of the points for this LineKit by range. More... | |
bool | ShowPointsByList (SizeTArray const &in_indices, PointArray &out_points) const |
Show a subset of the points for this LineKit by list. More... | |
bool | ShowPointsByList (size_t in_count, size_t const in_indices[], PointArray &out_points) const |
Show a subset of the points for this LineKit by list. More... | |
LineKit & | SetPoints (PointArray const &in_points, LineCoordinateSpaceArray const &in_spaces) |
Sets the points for this LineKit. More... | |
LineKit & | SetPoints (size_t in_count, Point const in_points[], Line::CoordinateSpace const in_spaces[]) |
Sets the points for this LineKit. More... | |
bool | ShowPoints (PointArray &out_points, LineCoordinateSpaceArray &out_coordinate_spaces) const |
Shows the points for this LineKit. More... | |
LineKit & | SetPointCoordinateSpace (size_t in_count, size_t const in_indices[], Line::CoordinateSpace const in_spaces[]) |
Sets the coordinate space to use for each point of this line. More... | |
LineKit & | SetPointCoordinateSpace (SizeTArray const &in_indices, LineCoordinateSpaceArray const &in_spaces) |
Sets the coordinate space to use for each point of this line. More... | |
LineKit & | SetPointCoordinateSpace (LineCoordinateSpaceArray const &in_spaces) |
Sets the coordinate space to use for each point of this line. More... | |
LineKit & | SetPointCoordinateSpace (size_t in_count, Line::CoordinateSpace const in_spaces[]) |
Sets the coordinate space to use for each point of this line. More... | |
LineKit & | UnsetPointCoordinateSpace (SizeTArray const &in_indices) |
Unsets the coordinate space for specified points on this line back to Coordinate::Space::Object. More... | |
LineKit & | UnsetPointCoordinateSpace (size_t in_count, size_t const in_indices[]) |
Unsets the coordinate space for specified points on this line back to Coordinate::Space::Object. More... | |
LineKit & | UnsetPointCoordinateSpace () |
Unsets the coordinate space for all points on this line back to Coordinate::Space::Object. More... | |
bool | ShowPointCoordinateSpace (size_t in_count, size_t const in_indices[], LineCoordinateSpaceArray &out_spaces) const |
Shows the coordinate space that is being used for the points at the specified indices. More... | |
bool | ShowPointCoordinateSpace (SizeTArray const &in_indices, LineCoordinateSpaceArray &out_spaces) const |
Shows the coordinate space that is being used for the points at the specified indices. More... | |
bool | ShowPointCoordinateSpace (LineCoordinateSpaceArray &out_spaces) const |
Shows the coordinate space that is being used for the points at the specified indices. More... | |
LineKit & | EditPointsByInsertion (size_t in_offset, size_t in_count, Point const in_points[]) |
Adds points to the point list for this LineKit. More... | |
LineKit & | EditPointsByInsertion (size_t in_offset, PointArray const &in_points) |
Adds points to the point list for this LineKit. More... | |
LineKit & | EditPointsByDeletion (size_t in_offset, size_t in_count) |
Removes points from the point list for this LineKit. More... | |
LineKit & | EditPointsByReplacement (size_t in_offset, size_t in_count, Point const in_points[]) |
Replaces points in the point list for this LineKit. More... | |
LineKit & | EditPointsByReplacement (size_t in_offset, PointArray const &in_points) |
Replaces points in the point list for this LineKit. More... | |
LineKit & | SetUserData (intptr_t in_index, size_t in_bytes, byte const in_data[]) |
Sets user data on this kit. More... | |
LineKit & | SetUserData (intptr_t in_index, ByteArray const &in_data) |
Sets user data on this kit. More... | |
LineKit & | SetUserData (IntPtrTArray const &in_indices, ByteArrayArray const &in_data) |
Sets user data on this kit. More... | |
LineKit & | UnsetUserData (intptr_t in_index) |
Removes the user data at the given index from this kit. More... | |
LineKit & | UnsetUserData (size_t in_count, intptr_t const in_indices[]) |
Removes the user data at the given indices from this kit. More... | |
LineKit & | UnsetUserData (IntPtrTArray const &in_indices) |
Removes the user data at the given indices from this kit. More... | |
LineKit & | UnsetAllUserData () |
Removes all user data from this kit. More... | |
size_t | ShowUserDataCount () const |
Get the number of user data indices set on this kit. More... | |
bool | ShowUserDataIndices (IntPtrTArray &out_indices) const |
Shows the indices of all user data set on this kit. More... | |
bool | ShowUserData (intptr_t in_index, ByteArray &out_data) const |
Shows the user data at a given index for this kit. More... | |
bool | ShowUserData (IntPtrTArray &out_indices, ByteArrayArray &out_data) const |
Shows all user data for this kit. 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 | |
template<typename T > | |
static intptr_t | ClassID () |
Unique identifier for this class. More... | |
Static Public Attributes | |
static const HPS::Type | staticType = HPS::Type::LineKit |
HPS::LineKit::LineKit | ( | ) |
The default constructor creates an empty LineKit object.
HPS::LineKit::LineKit | ( | LineKit const & | in_kit | ) |
HPS::LineKit::LineKit | ( | LineKit && | in_that | ) |
|
virtual |
|
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.
void HPS::LineKit::Consume | ( | LineKit & | in_kit | ) |
LineKit& HPS::LineKit::EditPointsByDeletion | ( | size_t | in_offset, |
size_t | in_count | ||
) |
Removes points from the point list for this LineKit.
in_offset | The offset into the point list for the line at which to start removing points. This value must be such that in_offset<point_count for deletion to succeed. |
in_count | The number of points to delete from the point list for the line. This value must be such that in_offset+in_count<=point_count for the deletion to succeed. |
LineKit& HPS::LineKit::EditPointsByInsertion | ( | size_t | in_offset, |
size_t | in_count, | ||
Point const | in_points[] | ||
) |
Adds points to the point list for this LineKit.
in_offset | The offset into the point list for the line at which to insert points. This value must be such that in_offset<point_count for insertion to succeed. |
in_count | Size of the following array. |
in_points | The points to insert into the point list at the specified offset. |
LineKit& HPS::LineKit::EditPointsByInsertion | ( | size_t | in_offset, |
PointArray const & | in_points | ||
) |
Adds points to the point list for this LineKit.
in_offset | The offset into the point list for the line at which to insert points. This value must be such that in_offset<point_count for insertion to succeed. |
in_points | The points to insert into the point list at the specified offset. |
LineKit& HPS::LineKit::EditPointsByReplacement | ( | size_t | in_offset, |
size_t | in_count, | ||
Point const | in_points[] | ||
) |
Replaces points in the point list for this LineKit.
in_offset | The offset into the point list for the line at which to start replacing points. This value must be such that in_offset<point_count for replacement to succeed. |
in_count | Size of the following array. This value must be such that in_offset+in_count<=point_count for the replacement to succeed. |
in_points | The points to use to replace those in the point list at the specified offset. |
LineKit& HPS::LineKit::EditPointsByReplacement | ( | size_t | in_offset, |
PointArray const & | in_points | ||
) |
Replaces points in the point list for this LineKit.
in_offset | The offset into the point list for the line at which to start replacing points. This value must be such that in_offset<point_count for replacement to succeed. |
in_points | The points to use to replace those in the point list at the specified offset. This size of the array must be such that in_offset+in_points.size()<=point_count for the replacement to succeed. |
|
virtual |
Indicates whether this LineKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::LineKit::Equals | ( | LineKit const & | in_kit | ) | const |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
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.
size_t HPS::LineKit::GetPointCount | ( | ) | const |
Retrieves the number of points in this line.
|
inherited |
|
inlinevirtual |
bool HPS::LineKit::operator!= | ( | LineKit const & | in_kit | ) | const |
bool HPS::LineKit::operator== | ( | LineKit const & | in_kit | ) | const |
|
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::LineKit::Set | ( | LineKit const & | in_kit | ) |
LineKit& HPS::LineKit::SetPointCoordinateSpace | ( | size_t | in_count, |
size_t const | in_indices[], | ||
Line::CoordinateSpace const | in_spaces[] | ||
) |
Sets the coordinate space to use for each point of this line.
The default is Line::CoordinateSpace::Object.
in_count | The number of points to unset. |
in_indices | The list of point indices to unset. |
in_spaces | The coordinate spaces for each point in the line. |
LineKit& HPS::LineKit::SetPointCoordinateSpace | ( | SizeTArray const & | in_indices, |
LineCoordinateSpaceArray const & | in_spaces | ||
) |
Sets the coordinate space to use for each point of this line.
The default is Line::CoordinateSpace::Object.
in_indices | The list of point indices to unset. |
in_spaces | The coordinate spaces for each point in the line. |
LineKit& HPS::LineKit::SetPointCoordinateSpace | ( | LineCoordinateSpaceArray const & | in_spaces | ) |
Sets the coordinate space to use for each point of this line.
The default is Line::CoordinateSpace::Object.
in_spaces | The coordinate spaces for each point in the line. |
LineKit& HPS::LineKit::SetPointCoordinateSpace | ( | size_t | in_count, |
Line::CoordinateSpace const | in_spaces[] | ||
) |
Sets the coordinate space to use for each point of this line.
The default is Line::CoordinateSpace::Object.
in_count | Size of the following array. |
in_spaces | The coordinate spaces for each point in the line. |
LineKit& HPS::LineKit::SetPoints | ( | PointArray const & | in_points | ) |
LineKit& HPS::LineKit::SetPoints | ( | PointArray const & | in_points, |
LineCoordinateSpaceArray const & | in_spaces | ||
) |
LineKit& HPS::LineKit::SetPoints | ( | size_t | in_count, |
Point const | in_points[], | ||
Line::CoordinateSpace const | in_spaces[] | ||
) |
LineKit& HPS::LineKit::SetPriority | ( | int | in_priority | ) |
Assigns a specific drawing priority value to the LineKit.
It affects the order in which the contents of this segment are drawn if and only if the rendering algorithm is set to Priority.
in_priority | The drawing priority, higher priority items are drawn on top of lower priority items. |
Sets user data on this kit.
in_index | The index of the user data to set. |
in_bytes | The number of bytes of user data to set. |
in_data | The bytes of user data to set. |
Sets user data on this kit.
in_index | The index of the user data to set. |
in_data | The bytes of user data to set. |
LineKit& HPS::LineKit::SetUserData | ( | IntPtrTArray const & | in_indices, |
ByteArrayArray const & | in_data | ||
) |
Sets user data on this kit.
in_indices | An array of user data indices to set. |
in_data | An array of bytes of user data to set. |
void HPS::LineKit::Show | ( | LineKit & | out_kit | ) | const |
bool HPS::LineKit::ShowPointCoordinateSpace | ( | size_t | in_count, |
size_t const | in_indices[], | ||
LineCoordinateSpaceArray & | out_spaces | ||
) | const |
Shows the coordinate space that is being used for the points at the specified indices.
in_count | The number of points to show. |
in_indices | The list of point indices to show. |
out_spaces | The coordinate spaces for each index specified. |
bool HPS::LineKit::ShowPointCoordinateSpace | ( | SizeTArray const & | in_indices, |
LineCoordinateSpaceArray & | out_spaces | ||
) | const |
Shows the coordinate space that is being used for the points at the specified indices.
in_indices | The list of point indices to show. |
out_spaces | The coordinate spaces for each index specified. |
bool HPS::LineKit::ShowPointCoordinateSpace | ( | LineCoordinateSpaceArray & | out_spaces | ) | const |
Shows the coordinate space that is being used for the points at the specified indices.
out_spaces | The coordinate spaces for each all points on this line. |
bool HPS::LineKit::ShowPoints | ( | PointArray & | out_points | ) | const |
bool HPS::LineKit::ShowPoints | ( | PointArray & | out_points, |
LineCoordinateSpaceArray & | out_coordinate_spaces | ||
) | const |
bool HPS::LineKit::ShowPointsByList | ( | SizeTArray const & | in_indices, |
PointArray & | out_points | ||
) | const |
bool HPS::LineKit::ShowPointsByList | ( | size_t | in_count, |
size_t const | in_indices[], | ||
PointArray & | out_points | ||
) | const |
bool HPS::LineKit::ShowPointsByRange | ( | size_t | in_start_index, |
size_t | in_count, | ||
PointArray & | out_points | ||
) | const |
bool HPS::LineKit::ShowPriority | ( | int & | out_priority | ) | const |
Shows the drawing priority.
out_priority | The drawing priority, higher priority items are drawn on top of lower priority items. |
bool HPS::LineKit::ShowUserData | ( | intptr_t | in_index, |
ByteArray & | out_data | ||
) | const |
Shows the user data at a given index for this kit.
in_index | The index of the user data to show. |
out_data | The user data at the given index. |
bool HPS::LineKit::ShowUserData | ( | IntPtrTArray & | out_indices, |
ByteArrayArray & | out_data | ||
) | const |
Shows all user data for this kit.
out_indices | An array of all user data indices set on this kit. |
out_data | An array of all user data set on this kit. |
size_t HPS::LineKit::ShowUserDataCount | ( | ) | const |
Get the number of user data indices set on this kit.
bool HPS::LineKit::ShowUserDataIndices | ( | IntPtrTArray & | out_indices | ) | const |
Shows the indices of all user data set on this kit.
out_indices | The user data indices set on this kit. |
|
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.
LineKit& HPS::LineKit::UnsetAllUserData | ( | ) |
Removes all user data from this kit.
LineKit& HPS::LineKit::UnsetEverything | ( | ) |
LineKit& HPS::LineKit::UnsetPointCoordinateSpace | ( | SizeTArray const & | in_indices | ) |
Unsets the coordinate space for specified points on this line back to Coordinate::Space::Object.
in_indices | The list of point indices to unset. |
LineKit& HPS::LineKit::UnsetPointCoordinateSpace | ( | size_t | in_count, |
size_t const | in_indices[] | ||
) |
Unsets the coordinate space for specified points on this line back to Coordinate::Space::Object.
in_count | The number of points to unset. |
in_indices | The list of point indices to unset. |
LineKit& HPS::LineKit::UnsetPointCoordinateSpace | ( | ) |
Unsets the coordinate space for all points on this line back to Coordinate::Space::Object.
LineKit& HPS::LineKit::UnsetPoints | ( | ) |
LineKit& HPS::LineKit::UnsetPriority | ( | ) |
Removes a drawing priority setting.
LineKit& HPS::LineKit::UnsetUserData | ( | intptr_t | in_index | ) |
Removes the user data at the given index from this kit.
in_index | The index of the user data to remove. |
LineKit& HPS::LineKit::UnsetUserData | ( | size_t | in_count, |
intptr_t const | in_indices[] | ||
) |
Removes the user data at the given indices from this kit.
in_count | The size of the following array. |
in_indices | The indices of the user data to remove. |
LineKit& HPS::LineKit::UnsetUserData | ( | IntPtrTArray const & | in_indices | ) |
Removes the user data at the given indices from this kit.
in_indices | The indices of the user data to remove. |
|
static |