The CylinderKit class is a user space object. More...
#include <hps.h>
Public Member Functions | |
CylinderKit () | |
The default constructor creates an empty CylinderKit object. More... | |
CylinderKit (CylinderKit const &in_kit) | |
The copy constructor creates a new CylinderKit object that contains the same settings as the source CylinderKit. More... | |
CylinderKit (CylinderKit &&in_that) | |
The move constructor creates a CylinderKit by transferring the underlying impl of the rvalue reference to this CylinderKit thereby avoiding a copy and allocation. More... | |
CylinderKit & | operator= (CylinderKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this CylinderKit thereby avoiding a copy. More... | |
virtual | ~CylinderKit () |
HPS::Type | ObjectType () const |
void | Consume (CylinderKit &in_kit) |
Copies the source CylinderKit into this CylinderKit and resets the source kit. More... | |
void | Set (CylinderKit const &in_kit) |
Copies the source CylinderKit into this CylinderKit. More... | |
void | Show (CylinderKit &out_kit) const |
Copies this CylinderKit into the given CylinderKit. More... | |
CylinderKit & | operator= (CylinderKit const &in_kit) |
Copies the source CylinderKit into this CylinderKit. More... | |
bool | Empty () const |
Indicates whether this CylinderKit has any values set on it. More... | |
bool | Equals (CylinderKit const &in_kit) const |
Check if the source CylinderKit is equivalent to this CylinderKit. More... | |
bool | operator== (CylinderKit const &in_kit) const |
Check if the source CylinderKit is equivalent to this CylinderKit. More... | |
bool | operator!= (CylinderKit const &in_kit) const |
Check if the source CylinderKit is not equivalent to this CylinderKit. More... | |
size_t | GetPointCount () const |
Retrieves the number of points in this cylinder. More... | |
CylinderKit & | SetPriority (int in_priority) |
Assigns a specific drawing priority value to the CylinderKit. More... | |
CylinderKit & | UnsetPriority () |
Removes a drawing priority setting. More... | |
bool | ShowPriority (int &out_priority) const |
Shows the drawing priority. More... | |
CylinderKit & | SetPoints (PointArray const &in_points) |
Sets the points for this CylinderKit. More... | |
CylinderKit & | SetPoints (size_t in_count, Point const in_points []) |
Sets the points for this CylinderKit. More... | |
CylinderKit & | SetRadii (FloatArray const &in_radii) |
Sets the radii for this CylinderKit. More... | |
CylinderKit & | SetRadii (size_t in_count, float const in_radii []) |
Sets the radii for this CylinderKit. More... | |
CylinderKit & | SetCaps (Cylinder::Capping in_capping) |
Sets the capping for this CylinderKit. More... | |
CylinderKit & | UnsetPoints () |
Removes the points for this CylinderKit. More... | |
CylinderKit & | UnsetRadii () |
Removes the radii for this CylinderKit. More... | |
CylinderKit & | UnsetCaps () |
Removes the capping for this CylinderKit. More... | |
CylinderKit & | UnsetEverything () |
Removes all settings from the CylinderKit. More... | |
bool | ShowPoints (PointArray &out_points) const |
Show the points for this CylinderKit. More... | |
bool | ShowPointsByRange (size_t in_start_index, size_t in_count, PointArray &out_points) const |
Show a subset of the points for this CylinderKit by range. More... | |
bool | ShowPointsByList (SizeTArray const &in_indices, PointArray &out_points) const |
Show a subset of the points for this CylinderKit 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 CylinderKit by list. More... | |
bool | ShowRadii (FloatArray &out_radii) const |
Show the radii for this CylinderKit. More... | |
bool | ShowCaps (Cylinder::Capping &out_caps) const |
Show the capping for this CylinderKit. More... | |
CylinderKit & | SetVertexRGBColorsByRange (size_t in_start, size_t in_count, RGBColor const in_rgb_colors[], Cylinder::Component in_apply_to=Cylinder::Component::Faces) |
Sets vertex RGB colors on a range of vertices starting at the specified offset which apply to the specified cylinder component. More... | |
CylinderKit & | SetVertexRGBColorsByRange (size_t in_start, RGBColorArray const &in_rgb_colors, Cylinder::Component in_apply_to=Cylinder::Component::Faces) |
Sets vertex RGB colors on a range of vertices starting at the specified offset which apply to the specified cylinder component. More... | |
CylinderKit & | SetVertexRGBColorsByRange (size_t in_start, size_t in_count, RGBColor const &in_rgb_color, Cylinder::Component in_apply_to=Cylinder::Component::Faces) |
Sets a single RGB color on a range of vertices starting at the specified offset which apply to the specified cylinder component. More... | |
CylinderKit & | SetVertexRGBColorsByList (size_t in_count, size_t const in_vertices[], RGBColor const in_rgb_colors[], Cylinder::Component in_apply_to=Cylinder::Component::Faces) |
Sets vertex RGB colors on a selection of arbitrary vertices which apply to the specified cylinder component. More... | |
CylinderKit & | SetVertexRGBColorsByList (SizeTArray const &in_vertices, RGBColorArray const &in_rgb_colors, Cylinder::Component in_apply_to=Cylinder::Component::Faces) |
Sets vertex RGB colors on a selection of arbitrary vertices which apply to the specified cylinder component. More... | |
CylinderKit & | SetVertexRGBColorsByList (size_t in_count, size_t const in_vertices[], RGBColor const &in_rgb_color, Cylinder::Component in_apply_to=Cylinder::Component::Faces) |
Sets a single RGB color on a selection of arbitrary vertices which apply to the specified cylinder component. More... | |
CylinderKit & | SetVertexRGBColorsByList (SizeTArray const &in_vertices, RGBColor const &in_rgb_color, Cylinder::Component in_apply_to=Cylinder::Component::Faces) |
Sets a single RGB color on a selection of arbitrary vertices which apply to the specified cylinder component. More... | |
CylinderKit & | SetVertexIndexColorsByRange (size_t in_start, size_t in_count, float const in_indices[], Cylinder::Component in_apply_to=Cylinder::Component::Faces) |
Sets vertex material indices on a range of vertices starting at the specified offset which apply to the specified cylinder component. More... | |
CylinderKit & | SetVertexIndexColorsByRange (size_t in_start, FloatArray const &in_indices, Cylinder::Component in_apply_to=Cylinder::Component::Faces) |
Sets vertex material indices on a range of vertices starting at the specified offset which apply to the specified cylinder component. More... | |
CylinderKit & | SetVertexIndexColorsByRange (size_t in_start, size_t in_count, float in_index, Cylinder::Component in_apply_to=Cylinder::Component::Faces) |
Sets a single material index on a range of vertices starting at the specified offset which apply to the specified cylinder component. More... | |
CylinderKit & | SetVertexIndexColorsByList (size_t in_count, size_t const in_vertices[], float const in_indices[], Cylinder::Component in_apply_to=Cylinder::Component::Faces) |
Sets vertex material indices on a selection of arbitrary vertices which apply to the specified cylinder component. More... | |
CylinderKit & | SetVertexIndexColorsByList (SizeTArray const &in_vertices, FloatArray const &in_indices, Cylinder::Component in_apply_to=Cylinder::Component::Faces) |
Sets vertex material indices on a selection of arbitrary vertices which apply to the specified cylinder component. More... | |
CylinderKit & | SetVertexIndexColorsByList (size_t in_count, size_t const in_vertices[], float in_index, Cylinder::Component in_apply_to=Cylinder::Component::Faces) |
Sets a single material index on a selection of arbitrary vertices which apply to the specified cylinder component. More... | |
CylinderKit & | SetVertexIndexColorsByList (SizeTArray const &in_vertices, float in_index, Cylinder::Component in_apply_to=Cylinder::Component::Faces) |
Sets a single material index on a selection of arbitrary vertices which apply to the specified cylinder component. More... | |
CylinderKit & | UnsetVertexColors () |
Removes all vertex colors (RGB colors or material indices) for all cylinder components. More... | |
CylinderKit & | UnsetVertexColorsByRange (size_t in_start, size_t in_count) |
Removes the specified range of vertex colors (RGB colors or material indices) for all cylinder components starting at the specified offset. More... | |
CylinderKit & | UnsetVertexColorsByList (SizeTArray const &in_vertices) |
Removes the vertex colors (RGB colors or material indices) for all cylinder components on a selection of arbitrary vertices. More... | |
CylinderKit & | UnsetVertexColors (Cylinder::Component in_apply_to) |
Removes all vertex colors (RGB colors or material indices) for the specified cylinder component. More... | |
CylinderKit & | UnsetVertexColorsByRange (size_t in_start, size_t in_count, Cylinder::Component in_apply_to) |
Removes the specified range of vertex colors (RGB colors or material indices) for the specified cylinder component starting at the specified offset. More... | |
CylinderKit & | UnsetVertexColorsByList (SizeTArray const &in_vertices, Cylinder::Component in_apply_to) |
Removes the vertex colors (RGB colors or material indices) for the specified cylinder component on a selection of arbitrary vertices. More... | |
CylinderKit & | UnsetVertexColorsByList (size_t in_count, size_t const in_vertices[]) |
Removes the vertex visibilities on a selection of arbitrary vertices. More... | |
CylinderKit & | UnsetVertexColorsByList (size_t in_count, size_t const in_vertices[], Cylinder::Component in_apply_to) |
Removes the vertex visibilities on a selection of arbitrary vertices. More... | |
bool | ShowVertexColors (Cylinder::Component in_apply_to, MaterialTypeArray &out_types, RGBColorArray &out_rgb_colors, FloatArray &out_indices) const |
Shows all the vertex colors of the specified cylinder component. More... | |
bool | ShowVertexColorsByRange (size_t in_start, size_t in_count, Cylinder::Component in_apply_to, MaterialTypeArray &out_types, RGBColorArray &out_rgb_colors, FloatArray &out_indices) const |
Shows the vertex colors on a range of vertices starting at the specified offset which apply to the specified cylinder component. More... | |
bool | ShowVertexColorsByList (SizeTArray const &in_vertices, Cylinder::Component in_apply_to, MaterialTypeArray &out_types, RGBColorArray &out_rgb_colors, FloatArray &out_indices) const |
Shows the vertex colors on a selection of arbitrary vertices which apply to the specified cylinder component. More... | |
CylinderKit & | SetUserData (intptr_t in_index, size_t in_bytes, byte const in_data[]) |
Sets user data on this kit. More... | |
CylinderKit & | SetUserData (intptr_t in_index, ByteArray const &in_data) |
Sets user data on this kit. More... | |
CylinderKit & | SetUserData (IntPtrTArray const &in_indices, ByteArrayArray const &in_data) |
Sets user data on this kit. More... | |
CylinderKit & | UnsetUserData (intptr_t in_index) |
Removes the user data at the given index from this kit. More... | |
CylinderKit & | UnsetUserData (size_t in_count, intptr_t const in_indices[]) |
Removes the user data at the given indices from this kit. More... | |
CylinderKit & | UnsetUserData (IntPtrTArray const &in_indices) |
Removes the user data at the given indices from this kit. More... | |
CylinderKit & | 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::CylinderKit |
The CylinderKit class is a user space object.
It is a kit analog to a CylinderKey.
HPS::CylinderKit::CylinderKit | ( | ) |
The default constructor creates an empty CylinderKit object.
HPS::CylinderKit::CylinderKit | ( | CylinderKit const & | in_kit | ) |
The copy constructor creates a new CylinderKit object that contains the same settings as the source CylinderKit.
in_kit | The source CylinderKit to copy. |
HPS::CylinderKit::CylinderKit | ( | CylinderKit && | in_that | ) |
The move constructor creates a CylinderKit by transferring the underlying impl of the rvalue reference to this CylinderKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to a CylinderKit to take the impl from. |
|
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::CylinderKit::Consume | ( | CylinderKit & | in_kit | ) |
Copies the source CylinderKit into this CylinderKit and resets the source kit.
in_kit | The source CylinderKit to consume. |
|
virtual |
Indicates whether this CylinderKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::CylinderKit::Equals | ( | CylinderKit const & | in_kit | ) | const |
Check if the source CylinderKit is equivalent to this CylinderKit.
in_kit | The source CylinderKit to compare to this CylinderKit. |
|
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::CylinderKit::GetPointCount | ( | ) | const |
Retrieves the number of points in this cylinder.
|
inherited |
|
inlinevirtual |
bool HPS::CylinderKit::operator!= | ( | CylinderKit const & | in_kit | ) | const |
Check if the source CylinderKit is not equivalent to this CylinderKit.
in_kit | The source CylinderKit to compare to this CylinderKit. |
CylinderKit& HPS::CylinderKit::operator= | ( | CylinderKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this CylinderKit thereby avoiding a copy.
in_that | An rvalue reference to a CylinderKit to take the impl from. |
CylinderKit& HPS::CylinderKit::operator= | ( | CylinderKit const & | in_kit | ) |
Copies the source CylinderKit into this CylinderKit.
in_kit | The source CylinderKit to copy. |
bool HPS::CylinderKit::operator== | ( | CylinderKit const & | in_kit | ) | const |
Check if the source CylinderKit is equivalent to this CylinderKit.
in_kit | The source CylinderKit to compare to this CylinderKit. |
|
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::CylinderKit::Set | ( | CylinderKit const & | in_kit | ) |
Copies the source CylinderKit into this CylinderKit.
in_kit | The source CylinderKit to copy. |
CylinderKit& HPS::CylinderKit::SetCaps | ( | Cylinder::Capping | in_capping | ) |
Sets the capping for this CylinderKit.
in_capping | The capping for this CylinderKit. |
CylinderKit& HPS::CylinderKit::SetPoints | ( | PointArray const & | in_points | ) |
Sets the points for this CylinderKit.
in_points | The points for this CylinderKit. |
CylinderKit& HPS::CylinderKit::SetPoints | ( | size_t | in_count, |
Point const | in_points[] | ||
) |
Sets the points for this CylinderKit.
in_count | Size of the following array. |
in_points | The points for this CylinderKit. |
CylinderKit& HPS::CylinderKit::SetPriority | ( | int | in_priority | ) |
Assigns a specific drawing priority value to the CylinderKit.
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. |
CylinderKit& HPS::CylinderKit::SetRadii | ( | FloatArray const & | in_radii | ) |
Sets the radii for this CylinderKit.
If the size of the radii array is smaller than the point array, the radii array will be walked repeatedly to determine the radius for all points.
in_radii | The radii for this CylinderKit. |
CylinderKit& HPS::CylinderKit::SetRadii | ( | size_t | in_count, |
float const | in_radii[] | ||
) |
Sets the radii for this CylinderKit.
If the size of the radii array is smaller than the point array, the radii array will be walked repeatedly to determine the radius for all points.
in_count | Size of the following array. |
in_radii | The radii for this CylinderKit. |
CylinderKit& HPS::CylinderKit::SetUserData | ( | intptr_t | in_index, |
size_t | in_bytes, | ||
byte const | in_data[] | ||
) |
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. |
CylinderKit& HPS::CylinderKit::SetUserData | ( | intptr_t | in_index, |
ByteArray const & | in_data | ||
) |
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. |
CylinderKit& HPS::CylinderKit::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. |
CylinderKit& HPS::CylinderKit::SetVertexIndexColorsByList | ( | size_t | in_count, |
size_t const | in_vertices[], | ||
float const | in_indices[], | ||
Cylinder::Component | in_apply_to = Cylinder::Component::Faces |
||
) |
Sets vertex material indices on a selection of arbitrary vertices which apply to the specified cylinder component.
in_count | Size of the following arrays. |
in_vertices | The indices of the vertices on which to set the colors. |
in_indices | The material indices to set on the vertices. |
in_apply_to | The cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces. |
CylinderKit& HPS::CylinderKit::SetVertexIndexColorsByList | ( | SizeTArray const & | in_vertices, |
FloatArray const & | in_indices, | ||
Cylinder::Component | in_apply_to = Cylinder::Component::Faces |
||
) |
Sets vertex material indices on a selection of arbitrary vertices which apply to the specified cylinder component.
If the sizes of the vertex index and material index arrays are different, the smaller size will be used.
in_vertices | The indices of the vertices on which to set the colors. |
in_indices | The material indices to set on the vertices. |
in_apply_to | The cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces. |
CylinderKit& HPS::CylinderKit::SetVertexIndexColorsByList | ( | size_t | in_count, |
size_t const | in_vertices[], | ||
float | in_index, | ||
Cylinder::Component | in_apply_to = Cylinder::Component::Faces |
||
) |
Sets a single material index on a selection of arbitrary vertices which apply to the specified cylinder component.
in_count | Size of the following array. |
in_vertices | The indices of the vertices on which to set the color. |
in_index | The material index to set on the vertices. |
in_apply_to | The cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces. |
CylinderKit& HPS::CylinderKit::SetVertexIndexColorsByList | ( | SizeTArray const & | in_vertices, |
float | in_index, | ||
Cylinder::Component | in_apply_to = Cylinder::Component::Faces |
||
) |
Sets a single material index on a selection of arbitrary vertices which apply to the specified cylinder component.
in_vertices | The indices of the vertices on which to set the color. |
in_index | The material index to set on the vertices. |
in_apply_to | The cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces. |
CylinderKit& HPS::CylinderKit::SetVertexIndexColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
float const | in_indices[], | ||
Cylinder::Component | in_apply_to = Cylinder::Component::Faces |
||
) |
Sets vertex material indices on a range of vertices starting at the specified offset which apply to the specified cylinder component.
in_start | The offset into the vertices for this CylinderKit at which to start setting colors. |
in_count | Size of the following array. |
in_indices | The material indices to set on the vertices for this CylinderKit. |
in_apply_to | The cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces. |
CylinderKit& HPS::CylinderKit::SetVertexIndexColorsByRange | ( | size_t | in_start, |
FloatArray const & | in_indices, | ||
Cylinder::Component | in_apply_to = Cylinder::Component::Faces |
||
) |
Sets vertex material indices on a range of vertices starting at the specified offset which apply to the specified cylinder component.
in_start | The offset into the vertices for this CylinderKit at which to start setting colors. |
in_indices | The material indices to set on the vertices for this CylinderKit. |
in_apply_to | The cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces. |
CylinderKit& HPS::CylinderKit::SetVertexIndexColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
float | in_index, | ||
Cylinder::Component | in_apply_to = Cylinder::Component::Faces |
||
) |
Sets a single material index on a range of vertices starting at the specified offset which apply to the specified cylinder component.
in_start | The offset into the vertices for this CylinderKit at which to start setting the color. |
in_count | The number of vertices on which to set the color. |
in_index | The material index to set on the vertices for this CylinderKit. |
in_apply_to | The cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces. |
CylinderKit& HPS::CylinderKit::SetVertexRGBColorsByList | ( | size_t | in_count, |
size_t const | in_vertices[], | ||
RGBColor const | in_rgb_colors[], | ||
Cylinder::Component | in_apply_to = Cylinder::Component::Faces |
||
) |
Sets vertex RGB colors on a selection of arbitrary vertices which apply to the specified cylinder component.
in_count | Size of the following arrays. |
in_vertices | The indices of the vertices on which to set the colors. |
in_rgb_colors | The RGB colors to set on the vertices. |
in_apply_to | The cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces. |
CylinderKit& HPS::CylinderKit::SetVertexRGBColorsByList | ( | SizeTArray const & | in_vertices, |
RGBColorArray const & | in_rgb_colors, | ||
Cylinder::Component | in_apply_to = Cylinder::Component::Faces |
||
) |
Sets vertex RGB colors on a selection of arbitrary vertices which apply to the specified cylinder component.
If the sizes of the vertex index array and the color array different, the smaller size will be used.
in_vertices | The indices of the vertices on which to set the colors. |
in_rgb_colors | The RGB colors to set on the vertices. |
in_apply_to | The cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces. |
CylinderKit& HPS::CylinderKit::SetVertexRGBColorsByList | ( | size_t | in_count, |
size_t const | in_vertices[], | ||
RGBColor const & | in_rgb_color, | ||
Cylinder::Component | in_apply_to = Cylinder::Component::Faces |
||
) |
Sets a single RGB color on a selection of arbitrary vertices which apply to the specified cylinder component.
in_count | Size of the following array. |
in_vertices | The indices of the vertices on which to set the color. |
in_rgb_color | The RGB color to set on the vertices. |
in_apply_to | The cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces. |
CylinderKit& HPS::CylinderKit::SetVertexRGBColorsByList | ( | SizeTArray const & | in_vertices, |
RGBColor const & | in_rgb_color, | ||
Cylinder::Component | in_apply_to = Cylinder::Component::Faces |
||
) |
Sets a single RGB color on a selection of arbitrary vertices which apply to the specified cylinder component.
in_vertices | The indices of the vertices on which to set the color. |
in_rgb_color | The RGB color to set on the vertices. |
in_apply_to | The cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces. |
CylinderKit& HPS::CylinderKit::SetVertexRGBColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
RGBColor const | in_rgb_colors[], | ||
Cylinder::Component | in_apply_to = Cylinder::Component::Faces |
||
) |
Sets vertex RGB colors on a range of vertices starting at the specified offset which apply to the specified cylinder component.
in_start | The offset into the vertices for this CylinderKit at which to start setting colors. |
in_count | Size of the following array. |
in_rgb_colors | The RGB colors to set on the vertices for this CylinderKit. |
in_apply_to | The cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces. |
CylinderKit& HPS::CylinderKit::SetVertexRGBColorsByRange | ( | size_t | in_start, |
RGBColorArray const & | in_rgb_colors, | ||
Cylinder::Component | in_apply_to = Cylinder::Component::Faces |
||
) |
Sets vertex RGB colors on a range of vertices starting at the specified offset which apply to the specified cylinder component.
in_start | The offset into the vertices for this CylinderKit at which to start setting colors. |
in_rgb_colors | The RGB colors to set on the vertices for this CylinderKit. |
in_apply_to | The cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces. |
CylinderKit& HPS::CylinderKit::SetVertexRGBColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
RGBColor const & | in_rgb_color, | ||
Cylinder::Component | in_apply_to = Cylinder::Component::Faces |
||
) |
Sets a single RGB color on a range of vertices starting at the specified offset which apply to the specified cylinder component.
in_start | The offset into the vertices for this CylinderKit at which to start setting the color. |
in_count | The number of vertices on which to set the color. |
in_rgb_color | The RGB color to set on the vertices for this CylinderKit. |
in_apply_to | The cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces. |
void HPS::CylinderKit::Show | ( | CylinderKit & | out_kit | ) | const |
Copies this CylinderKit into the given CylinderKit.
out_kit | The CylinderKit to populate with the contents of this CylinderKit. |
bool HPS::CylinderKit::ShowCaps | ( | Cylinder::Capping & | out_caps | ) | const |
Show the capping for this CylinderKit.
out_caps | The capping for this CylinderKit. |
bool HPS::CylinderKit::ShowPoints | ( | PointArray & | out_points | ) | const |
Show the points for this CylinderKit.
out_points | The points for this CylinderKit. |
bool HPS::CylinderKit::ShowPointsByList | ( | SizeTArray const & | in_indices, |
PointArray & | out_points | ||
) | const |
Show a subset of the points for this CylinderKit by list.
in_indices | The list of point indices to show. |
out_points | The requested points for this CylinderKit. |
bool HPS::CylinderKit::ShowPointsByList | ( | size_t | in_count, |
size_t const | in_indices[], | ||
PointArray & | out_points | ||
) | const |
Show a subset of the points for this CylinderKit by list.
in_count | The number of points to show. |
in_indices | The list of point indices to show. |
out_points | The requested points for this CylinderKit. |
bool HPS::CylinderKit::ShowPointsByRange | ( | size_t | in_start_index, |
size_t | in_count, | ||
PointArray & | out_points | ||
) | const |
Show a subset of the points for this CylinderKit by range.
in_start_index | The first point to show. |
in_count | The number of points to show. |
out_points | The requested points for this CylinderKit. |
bool HPS::CylinderKit::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::CylinderKit::ShowRadii | ( | FloatArray & | out_radii | ) | const |
Show the radii for this CylinderKit.
out_radii | The radii for this CylinderKit. |
bool HPS::CylinderKit::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::CylinderKit::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::CylinderKit::ShowUserDataCount | ( | ) | const |
Get the number of user data indices set on this kit.
bool HPS::CylinderKit::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. |
bool HPS::CylinderKit::ShowVertexColors | ( | Cylinder::Component | in_apply_to, |
MaterialTypeArray & | out_types, | ||
RGBColorArray & | out_rgb_colors, | ||
FloatArray & | out_indices | ||
) | const |
Shows all the vertex colors of the specified cylinder component.
in_apply_to | The cylinder component the colors should apply to. |
out_types | The types of vertex colors for each vertex. If a vertex does not have a vertex color set for the specified cylinder component, the entry in this array will be Material::Type::None. |
out_rgb_colors | The RGB colors for each vertex. out_rgb_colors[i] is only valid if out_types[i] is Material::Type::RGBColor. |
out_indices | The material indices for each vertex. The out_indices[i] is only valid if out_types[i] is Material::Type::MaterialIndex. |
bool HPS::CylinderKit::ShowVertexColorsByList | ( | SizeTArray const & | in_vertices, |
Cylinder::Component | in_apply_to, | ||
MaterialTypeArray & | out_types, | ||
RGBColorArray & | out_rgb_colors, | ||
FloatArray & | out_indices | ||
) | const |
Shows the vertex colors on a selection of arbitrary vertices which apply to the specified cylinder component.
The order of the values in the ouput arrays is the same as the input vertex index array, i.e., the values of out_types[i], out_rgb_colors[i], out_rgba_colors[i], and out_indices[i], correspond to the vertex at index in_vertices[i].
in_vertices | The indices of the vertices on which to show the colors. |
in_apply_to | The cylinder component the colors should apply to. |
out_types | The types of vertex colors for each vertex at the specified index. If a vertex at a specified index does not have a vertex color set for the specified component, the entry in this array will be Material::Type::None. |
out_rgb_colors | The RGB colors for each vertex at the specified index. out_rgb_colors[i] is only valid if out_types[i] is Material::Type::RGBColor. |
out_indices | The material indices for each vertex at the specified index. The out_indices[i] is only valid if out_types[i] is Material::Type::MaterialIndex. |
bool HPS::CylinderKit::ShowVertexColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
Cylinder::Component | in_apply_to, | ||
MaterialTypeArray & | out_types, | ||
RGBColorArray & | out_rgb_colors, | ||
FloatArray & | out_indices | ||
) | const |
Shows the vertex colors on a range of vertices starting at the specified offset which apply to the specified cylinder component.
in_start | The offset into the vertices for this CylinderKit at which to start showing colors. |
in_count | The number of colors to show. |
in_apply_to | The cylinder component the colors should apply to. |
out_types | The types of vertex colors for each vertex in the specified range. If a vertex in the specified range does not have a vertex color set for the specified cylinder component, the entry in this array will be Material::Type::None. |
out_rgb_colors | The RGB colors for each vertex in the specified range. out_rgb_colors[i] is only valid if out_types[i] is Material::Type::RGBColor. |
out_indices | The material indices for each vertex in the specified range. The out_indices[i] is only valid if out_types[i] is Material::Type::MaterialIndex. |
|
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.
CylinderKit& HPS::CylinderKit::UnsetAllUserData | ( | ) |
Removes all user data from this kit.
CylinderKit& HPS::CylinderKit::UnsetCaps | ( | ) |
Removes the capping for this CylinderKit.
CylinderKit& HPS::CylinderKit::UnsetEverything | ( | ) |
Removes all settings from the CylinderKit.
CylinderKit& HPS::CylinderKit::UnsetPoints | ( | ) |
Removes the points for this CylinderKit.
CylinderKit& HPS::CylinderKit::UnsetPriority | ( | ) |
Removes a drawing priority setting.
CylinderKit& HPS::CylinderKit::UnsetRadii | ( | ) |
Removes the radii for this CylinderKit.
CylinderKit& HPS::CylinderKit::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. |
CylinderKit& HPS::CylinderKit::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. |
CylinderKit& HPS::CylinderKit::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. |
CylinderKit& HPS::CylinderKit::UnsetVertexColors | ( | ) |
Removes all vertex colors (RGB colors or material indices) for all cylinder components.
CylinderKit& HPS::CylinderKit::UnsetVertexColors | ( | Cylinder::Component | in_apply_to | ) |
Removes all vertex colors (RGB colors or material indices) for the specified cylinder component.
in_apply_to | The cylinder component for which to remove the colors. |
CylinderKit& HPS::CylinderKit::UnsetVertexColorsByList | ( | SizeTArray const & | in_vertices | ) |
Removes the vertex colors (RGB colors or material indices) for all cylinder components on a selection of arbitrary vertices.
in_vertices | The indices of the vertices on which to remove the colors. |
CylinderKit& HPS::CylinderKit::UnsetVertexColorsByList | ( | SizeTArray const & | in_vertices, |
Cylinder::Component | in_apply_to | ||
) |
Removes the vertex colors (RGB colors or material indices) for the specified cylinder component on a selection of arbitrary vertices.
in_vertices | The indices of the vertices on which to remove the colors. |
in_apply_to | The cylinder component for which to remove the colors. |
CylinderKit& HPS::CylinderKit::UnsetVertexColorsByList | ( | size_t | in_count, |
size_t const | in_vertices[] | ||
) |
Removes the vertex visibilities on a selection of arbitrary vertices.
in_count | The number of vertex visibilities to remove for this CylinderKit. |
in_vertices | The indices of the vertices on which to remove the visibilities. |
CylinderKit& HPS::CylinderKit::UnsetVertexColorsByList | ( | size_t | in_count, |
size_t const | in_vertices[], | ||
Cylinder::Component | in_apply_to | ||
) |
Removes the vertex visibilities on a selection of arbitrary vertices.
in_count | The number of vertex visibilities to remove for this CylinderKit. |
in_vertices | The indices of the vertices on which to remove the visibilities. |
in_apply_to | The cylinder component that should be unset. |
CylinderKit& HPS::CylinderKit::UnsetVertexColorsByRange | ( | size_t | in_start, |
size_t | in_count | ||
) |
Removes the specified range of vertex colors (RGB colors or material indices) for all cylinder components starting at the specified offset.
in_start | The offset into the vertices for this CylinderKit at which to start removing colors. |
in_count | The number of vertex colors to remove for this CylinderKit. |
CylinderKit& HPS::CylinderKit::UnsetVertexColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
Cylinder::Component | in_apply_to | ||
) |
Removes the specified range of vertex colors (RGB colors or material indices) for the specified cylinder component starting at the specified offset.
in_start | The offset into the vertices for this CylinderKit at which to start removing colors. |
in_count | The number of vertex colors to remove for this CylinderKit. |
in_apply_to | The cylinder component for which to remove the colors. |
|
static |