Hoops Visualize HPS  version 2018-SP2
Hoops Visualize HPS 3D Rendering Engine
Looking for a senior C++ dev?
I'm looking for work. Hire me!
HPS::CylinderKit Class Reference

The CylinderKit class is a user space object. More...

#include <hps.h>

Inheritance diagram for HPS::CylinderKit:
Collaboration diagram for HPS::CylinderKit:

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...
 
CylinderKitoperator= (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...
 
CylinderKitoperator= (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...
 
CylinderKitSetPriority (int in_priority)
 Assigns a specific drawing priority value to the CylinderKit. More...
 
CylinderKitUnsetPriority ()
 Removes a drawing priority setting. More...
 
bool ShowPriority (int &out_priority) const
 Shows the drawing priority. More...
 
CylinderKitSetPoints (PointArray const &in_points)
 Sets the points for this CylinderKit. More...
 
CylinderKitSetPoints (size_t in_count, Point const in_points [])
 Sets the points for this CylinderKit. More...
 
CylinderKitSetRadii (FloatArray const &in_radii)
 Sets the radii for this CylinderKit. More...
 
CylinderKitSetRadii (size_t in_count, float const in_radii [])
 Sets the radii for this CylinderKit. More...
 
CylinderKitSetCaps (Cylinder::Capping in_capping)
 Sets the capping for this CylinderKit. More...
 
CylinderKitUnsetPoints ()
 Removes the points for this CylinderKit. More...
 
CylinderKitUnsetRadii ()
 Removes the radii for this CylinderKit. More...
 
CylinderKitUnsetCaps ()
 Removes the capping for this CylinderKit. More...
 
CylinderKitUnsetEverything ()
 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...
 
CylinderKitSetVertexRGBColorsByRange (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...
 
CylinderKitSetVertexRGBColorsByRange (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...
 
CylinderKitSetVertexRGBColorsByRange (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...
 
CylinderKitSetVertexRGBColorsByList (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...
 
CylinderKitSetVertexRGBColorsByList (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...
 
CylinderKitSetVertexRGBColorsByList (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...
 
CylinderKitSetVertexRGBColorsByList (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...
 
CylinderKitSetVertexIndexColorsByRange (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...
 
CylinderKitSetVertexIndexColorsByRange (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...
 
CylinderKitSetVertexIndexColorsByRange (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...
 
CylinderKitSetVertexIndexColorsByList (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...
 
CylinderKitSetVertexIndexColorsByList (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...
 
CylinderKitSetVertexIndexColorsByList (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...
 
CylinderKitSetVertexIndexColorsByList (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...
 
CylinderKitUnsetVertexColors ()
 Removes all vertex colors (RGB colors or material indices) for all cylinder components. More...
 
CylinderKitUnsetVertexColorsByRange (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...
 
CylinderKitUnsetVertexColorsByList (SizeTArray const &in_vertices)
 Removes the vertex colors (RGB colors or material indices) for all cylinder components on a selection of arbitrary vertices. More...
 
CylinderKitUnsetVertexColors (Cylinder::Component in_apply_to)
 Removes all vertex colors (RGB colors or material indices) for the specified cylinder component. More...
 
CylinderKitUnsetVertexColorsByRange (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...
 
CylinderKitUnsetVertexColorsByList (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...
 
CylinderKitUnsetVertexColorsByList (size_t in_count, size_t const in_vertices[])
 Removes the vertex visibilities on a selection of arbitrary vertices. More...
 
CylinderKitUnsetVertexColorsByList (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...
 
CylinderKitSetUserData (intptr_t in_index, size_t in_bytes, byte const in_data[])
 Sets user data on this kit. More...
 
CylinderKitSetUserData (intptr_t in_index, ByteArray const &in_data)
 Sets user data on this kit. More...
 
CylinderKitSetUserData (IntPtrTArray const &in_indices, ByteArrayArray const &in_data)
 Sets user data on this kit. More...
 
CylinderKitUnsetUserData (intptr_t in_index)
 Removes the user data at the given index from this kit. More...
 
CylinderKitUnsetUserData (size_t in_count, intptr_t const in_indices[])
 Removes the user data at the given indices from this kit. More...
 
CylinderKitUnsetUserData (IntPtrTArray const &in_indices)
 Removes the user data at the given indices from this kit. More...
 
CylinderKitUnsetAllUserData ()
 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
 

Detailed Description

The CylinderKit class is a user space object.

It is a kit analog to a CylinderKey.

Constructor & Destructor Documentation

◆ CylinderKit() [1/3]

HPS::CylinderKit::CylinderKit ( )

The default constructor creates an empty CylinderKit object.

◆ CylinderKit() [2/3]

HPS::CylinderKit::CylinderKit ( CylinderKit const &  in_kit)

The copy constructor creates a new CylinderKit object that contains the same settings as the source CylinderKit.

Parameters
in_kitThe source CylinderKit to copy.

◆ CylinderKit() [3/3]

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.

Parameters
in_thatAn rvalue reference to a CylinderKit to take the impl from.

◆ ~CylinderKit()

virtual HPS::CylinderKit::~CylinderKit ( )
virtual

Member Function Documentation

◆ ClassID()

template<typename T >
static intptr_t HPS::Object::ClassID ( )
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.

◆ Consume()

void HPS::CylinderKit::Consume ( CylinderKit in_kit)

Copies the source CylinderKit into this CylinderKit and resets the source kit.

Parameters
in_kitThe source CylinderKit to consume.

◆ Empty()

bool HPS::CylinderKit::Empty ( ) const
virtual

Indicates whether this CylinderKit has any values set on it.

Returns
true if no values are set on this CylinderKit, false otherwise.

Reimplemented from HPS::Object.

◆ Equals()

bool HPS::CylinderKit::Equals ( CylinderKit const &  in_kit) const

Check if the source CylinderKit is equivalent to this CylinderKit.

Parameters
in_kitThe source CylinderKit to compare to this CylinderKit.
Returns
true if the objects are equivalent, false otherwise.

◆ GetClassID()

intptr_t HPS::Object::GetClassID ( ) const
inherited

Returns a unique identifier that is shared by all objects of the same class.

Returns
A unique value shared by all objects of the same class.

◆ GetInstanceID()

intptr_t HPS::Object::GetInstanceID ( ) const
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.

Returns
A value unique to an instance of an object and all objects that are backed by the same database resource.

◆ GetPointCount()

size_t HPS::CylinderKit::GetPointCount ( ) const

Retrieves the number of points in this cylinder.

Returns
The number of points in this cylinder.

◆ HasType()

bool HPS::Object::HasType ( HPS::Type  in_mask) const
inherited

This function indicates whether this Object has the given Type mask.

Parameters
in_maskThe Type mask to check against this Object.
Returns
true if this Object has the given Type mask, false otherwise.

◆ ObjectType()

HPS::Type HPS::CylinderKit::ObjectType ( ) const
inlinevirtual

Reimplemented from HPS::Kit.

Here is the call graph for this function:

◆ operator!=()

bool HPS::CylinderKit::operator!= ( CylinderKit const &  in_kit) const

Check if the source CylinderKit is not equivalent to this CylinderKit.

Parameters
in_kitThe source CylinderKit to compare to this CylinderKit.
Returns
true if the objects are not equivalent, false otherwise.

◆ operator=() [1/2]

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.

Parameters
in_thatAn rvalue reference to a CylinderKit to take the impl from.
Returns
A reference to this CylinderKit.

◆ operator=() [2/2]

CylinderKit& HPS::CylinderKit::operator= ( CylinderKit const &  in_kit)

Copies the source CylinderKit into this CylinderKit.

Parameters
in_kitThe source CylinderKit to copy.
Returns
A reference to this CylinderKit.

◆ operator==()

bool HPS::CylinderKit::operator== ( CylinderKit const &  in_kit) const

Check if the source CylinderKit is equivalent to this CylinderKit.

Parameters
in_kitThe source CylinderKit to compare to this CylinderKit.
Returns
true if the objects are equivalent, false otherwise.

◆ Reset()

◆ Set()

void HPS::CylinderKit::Set ( CylinderKit const &  in_kit)

Copies the source CylinderKit into this CylinderKit.

Parameters
in_kitThe source CylinderKit to copy.

◆ SetCaps()

CylinderKit& HPS::CylinderKit::SetCaps ( Cylinder::Capping  in_capping)

Sets the capping for this CylinderKit.

Parameters
in_cappingThe capping for this CylinderKit.
Returns
A reference to this CylinderKit.

◆ SetPoints() [1/2]

CylinderKit& HPS::CylinderKit::SetPoints ( PointArray const &  in_points)

Sets the points for this CylinderKit.

Parameters
in_pointsThe points for this CylinderKit.
Returns
A reference to this CylinderKit.

◆ SetPoints() [2/2]

CylinderKit& HPS::CylinderKit::SetPoints ( size_t  in_count,
Point const  in_points[] 
)

Sets the points for this CylinderKit.

Parameters
in_countSize of the following array.
in_pointsThe points for this CylinderKit.
Returns
A reference to this CylinderKit.

◆ SetPriority()

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.

Parameters
in_priorityThe drawing priority, higher priority items are drawn on top of lower priority items.
Returns
A reference to this object.
See also
SubwindowKit::SetPriority()
SubwindowKit::SetRenderingAlgorithm()

◆ SetRadii() [1/2]

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.

Parameters
in_radiiThe radii for this CylinderKit.
Returns
A reference to this CylinderKit.

◆ SetRadii() [2/2]

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.

Parameters
in_countSize of the following array.
in_radiiThe radii for this CylinderKit.
Returns
A reference to this CylinderKit.

◆ SetUserData() [1/3]

CylinderKit& HPS::CylinderKit::SetUserData ( intptr_t  in_index,
size_t  in_bytes,
byte const  in_data[] 
)

Sets user data on this kit.

Parameters
in_indexThe index of the user data to set.
in_bytesThe number of bytes of user data to set.
in_dataThe bytes of user data to set.
Returns
A reference to this kit.

◆ SetUserData() [2/3]

CylinderKit& HPS::CylinderKit::SetUserData ( intptr_t  in_index,
ByteArray const &  in_data 
)

Sets user data on this kit.

Parameters
in_indexThe index of the user data to set.
in_dataThe bytes of user data to set.
Returns
A reference to this kit.

◆ SetUserData() [3/3]

CylinderKit& HPS::CylinderKit::SetUserData ( IntPtrTArray const &  in_indices,
ByteArrayArray const &  in_data 
)

Sets user data on this kit.

Parameters
in_indicesAn array of user data indices to set.
in_dataAn array of bytes of user data to set.
Returns
A reference to this kit.

◆ SetVertexIndexColorsByList() [1/4]

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.

Parameters
in_countSize of the following arrays.
in_verticesThe indices of the vertices on which to set the colors.
in_indicesThe material indices to set on the vertices.
in_apply_toThe cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces.
Returns
A reference to this CylinderKit.

◆ SetVertexIndexColorsByList() [2/4]

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.

Parameters
in_verticesThe indices of the vertices on which to set the colors.
in_indicesThe material indices to set on the vertices.
in_apply_toThe cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces.
Returns
A reference to this CylinderKit.

◆ SetVertexIndexColorsByList() [3/4]

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.

Parameters
in_countSize of the following array.
in_verticesThe indices of the vertices on which to set the color.
in_indexThe material index to set on the vertices.
in_apply_toThe cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces.
Returns
A reference to this CylinderKit.

◆ SetVertexIndexColorsByList() [4/4]

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.

Parameters
in_verticesThe indices of the vertices on which to set the color.
in_indexThe material index to set on the vertices.
in_apply_toThe cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces.
Returns
A reference to this CylinderKit.

◆ SetVertexIndexColorsByRange() [1/3]

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.

Parameters
in_startThe offset into the vertices for this CylinderKit at which to start setting colors.
in_countSize of the following array.
in_indicesThe material indices to set on the vertices for this CylinderKit.
in_apply_toThe cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces.
Returns
A reference to this CylinderKit.

◆ SetVertexIndexColorsByRange() [2/3]

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.

Parameters
in_startThe offset into the vertices for this CylinderKit at which to start setting colors.
in_indicesThe material indices to set on the vertices for this CylinderKit.
in_apply_toThe cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces.
Returns
A reference to this CylinderKit.

◆ SetVertexIndexColorsByRange() [3/3]

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.

Parameters
in_startThe offset into the vertices for this CylinderKit at which to start setting the color.
in_countThe number of vertices on which to set the color.
in_indexThe material index to set on the vertices for this CylinderKit.
in_apply_toThe cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces.
Returns
A reference to this CylinderKit.

◆ SetVertexRGBColorsByList() [1/4]

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.

Parameters
in_countSize of the following arrays.
in_verticesThe indices of the vertices on which to set the colors.
in_rgb_colorsThe RGB colors to set on the vertices.
in_apply_toThe cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces.
Returns
A reference to this CylinderKit.

◆ SetVertexRGBColorsByList() [2/4]

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.

Parameters
in_verticesThe indices of the vertices on which to set the colors.
in_rgb_colorsThe RGB colors to set on the vertices.
in_apply_toThe cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces.
Returns
A reference to this CylinderKit.

◆ SetVertexRGBColorsByList() [3/4]

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.

Parameters
in_countSize of the following array.
in_verticesThe indices of the vertices on which to set the color.
in_rgb_colorThe RGB color to set on the vertices.
in_apply_toThe cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces.
Returns
A reference to this CylinderKit.

◆ SetVertexRGBColorsByList() [4/4]

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.

Parameters
in_verticesThe indices of the vertices on which to set the color.
in_rgb_colorThe RGB color to set on the vertices.
in_apply_toThe cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces.
Returns
A reference to this CylinderKit.

◆ SetVertexRGBColorsByRange() [1/3]

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.

Parameters
in_startThe offset into the vertices for this CylinderKit at which to start setting colors.
in_countSize of the following array.
in_rgb_colorsThe RGB colors to set on the vertices for this CylinderKit.
in_apply_toThe cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces.
Returns
A reference to this CylinderKit.

◆ SetVertexRGBColorsByRange() [2/3]

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.

Parameters
in_startThe offset into the vertices for this CylinderKit at which to start setting colors.
in_rgb_colorsThe RGB colors to set on the vertices for this CylinderKit.
in_apply_toThe cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces.
Returns
A reference to this CylinderKit.

◆ SetVertexRGBColorsByRange() [3/3]

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.

Parameters
in_startThe offset into the vertices for this CylinderKit at which to start setting the color.
in_countThe number of vertices on which to set the color.
in_rgb_colorThe RGB color to set on the vertices for this CylinderKit.
in_apply_toThe cylinder component the colors should apply to. Defaults to Cylinder::Component::Faces.
Returns
A reference to this CylinderKit.

◆ Show()

void HPS::CylinderKit::Show ( CylinderKit out_kit) const

Copies this CylinderKit into the given CylinderKit.

Parameters
out_kitThe CylinderKit to populate with the contents of this CylinderKit.

◆ ShowCaps()

bool HPS::CylinderKit::ShowCaps ( Cylinder::Capping out_caps) const

Show the capping for this CylinderKit.

Parameters
out_capsThe capping for this CylinderKit.
Returns
true if a capping was set, false otherwise.

◆ ShowPoints()

bool HPS::CylinderKit::ShowPoints ( PointArray out_points) const

Show the points for this CylinderKit.

Parameters
out_pointsThe points for this CylinderKit.
Returns
true if points were set, false otherwise.

◆ ShowPointsByList() [1/2]

bool HPS::CylinderKit::ShowPointsByList ( SizeTArray const &  in_indices,
PointArray out_points 
) const

Show a subset of the points for this CylinderKit by list.

Parameters
in_indicesThe list of point indices to show.
out_pointsThe requested points for this CylinderKit.
Returns
true if all requested points were set, false otherwise.

◆ ShowPointsByList() [2/2]

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.

Parameters
in_countThe number of points to show.
in_indicesThe list of point indices to show.
out_pointsThe requested points for this CylinderKit.
Returns
true if all requested points were set, false otherwise.

◆ ShowPointsByRange()

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.

Parameters
in_start_indexThe first point to show.
in_countThe number of points to show.
out_pointsThe requested points for this CylinderKit.
Returns
true if all requested points were set, false otherwise.

◆ ShowPriority()

bool HPS::CylinderKit::ShowPriority ( int &  out_priority) const

Shows the drawing priority.

Parameters
out_priorityThe drawing priority, higher priority items are drawn on top of lower priority items.
Returns
true if the setting is valid, false otherwise.

◆ ShowRadii()

bool HPS::CylinderKit::ShowRadii ( FloatArray out_radii) const

Show the radii for this CylinderKit.

Parameters
out_radiiThe radii for this CylinderKit.
Returns
true if radii were set, false otherwise.

◆ ShowUserData() [1/2]

bool HPS::CylinderKit::ShowUserData ( intptr_t  in_index,
ByteArray out_data 
) const

Shows the user data at a given index for this kit.

Parameters
in_indexThe index of the user data to show.
out_dataThe user data at the given index.
Returns
true if there is user data at the given index, false otherwise.

◆ ShowUserData() [2/2]

bool HPS::CylinderKit::ShowUserData ( IntPtrTArray out_indices,
ByteArrayArray out_data 
) const

Shows all user data for this kit.

Parameters
out_indicesAn array of all user data indices set on this kit.
out_dataAn array of all user data set on this kit.
Returns
true if there is user data on this kit, false otherwise.

◆ ShowUserDataCount()

size_t HPS::CylinderKit::ShowUserDataCount ( ) const

Get the number of user data indices set on this kit.

◆ ShowUserDataIndices()

bool HPS::CylinderKit::ShowUserDataIndices ( IntPtrTArray out_indices) const

Shows the indices of all user data set on this kit.

Parameters
out_indicesThe user data indices set on this kit.
Returns
The number of user data indices set on this kit.

◆ ShowVertexColors()

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.

Parameters
in_apply_toThe cylinder component the colors should apply to.
out_typesThe 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_colorsThe RGB colors for each vertex. out_rgb_colors[i] is only valid if out_types[i] is Material::Type::RGBColor.
out_indicesThe material indices for each vertex. The out_indices[i] is only valid if out_types[i] is Material::Type::MaterialIndex.
Returns
true if any vertex colors were shown, false otherwise.

◆ ShowVertexColorsByList()

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].

Parameters
in_verticesThe indices of the vertices on which to show the colors.
in_apply_toThe cylinder component the colors should apply to.
out_typesThe 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_colorsThe 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_indicesThe material indices for each vertex at the specified index. The out_indices[i] is only valid if out_types[i] is Material::Type::MaterialIndex.
Returns
true if any specified vertex had a vertex color on the specified component set, false otherwise.

◆ ShowVertexColorsByRange()

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.

Parameters
in_startThe offset into the vertices for this CylinderKit at which to start showing colors.
in_countThe number of colors to show.
in_apply_toThe cylinder component the colors should apply to.
out_typesThe 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_colorsThe 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_indicesThe material indices for each vertex in the specified range. The out_indices[i] is only valid if out_types[i] is Material::Type::MaterialIndex.
Returns
true if any vertex in the specified range had a vertex color on the specified component set, false otherwise.

◆ Type()

virtual HPS::Type HPS::Kit::Type ( ) const
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.

Returns
The true type of the object in question.

Reimplemented from HPS::Object.

◆ UnsetAllUserData()

CylinderKit& HPS::CylinderKit::UnsetAllUserData ( )

Removes all user data from this kit.

Returns
A reference to this kit.

◆ UnsetCaps()

CylinderKit& HPS::CylinderKit::UnsetCaps ( )

Removes the capping for this CylinderKit.

Returns
A reference to this CylinderKit.

◆ UnsetEverything()

CylinderKit& HPS::CylinderKit::UnsetEverything ( )

Removes all settings from the CylinderKit.

Returns
A reference to this CylinderKit.

◆ UnsetPoints()

CylinderKit& HPS::CylinderKit::UnsetPoints ( )

Removes the points for this CylinderKit.

Returns
A reference to this CylinderKit.

◆ UnsetPriority()

CylinderKit& HPS::CylinderKit::UnsetPriority ( )

Removes a drawing priority setting.

Returns
A reference to this object.

◆ UnsetRadii()

CylinderKit& HPS::CylinderKit::UnsetRadii ( )

Removes the radii for this CylinderKit.

Returns
A reference to this CylinderKit.

◆ UnsetUserData() [1/3]

CylinderKit& HPS::CylinderKit::UnsetUserData ( intptr_t  in_index)

Removes the user data at the given index from this kit.

Parameters
in_indexThe index of the user data to remove.
Returns
A reference to this kit.

◆ UnsetUserData() [2/3]

CylinderKit& HPS::CylinderKit::UnsetUserData ( size_t  in_count,
intptr_t const  in_indices[] 
)

Removes the user data at the given indices from this kit.

Parameters
in_countThe size of the following array.
in_indicesThe indices of the user data to remove.
Returns
A reference to this kit.

◆ UnsetUserData() [3/3]

CylinderKit& HPS::CylinderKit::UnsetUserData ( IntPtrTArray const &  in_indices)

Removes the user data at the given indices from this kit.

Parameters
in_indicesThe indices of the user data to remove.
Returns
A reference to this kit.

◆ UnsetVertexColors() [1/2]

CylinderKit& HPS::CylinderKit::UnsetVertexColors ( )

Removes all vertex colors (RGB colors or material indices) for all cylinder components.

Returns
A reference to this CylinderKit.

◆ UnsetVertexColors() [2/2]

CylinderKit& HPS::CylinderKit::UnsetVertexColors ( Cylinder::Component  in_apply_to)

Removes all vertex colors (RGB colors or material indices) for the specified cylinder component.

Parameters
in_apply_toThe cylinder component for which to remove the colors.
Returns
A reference to this CylinderKit.

◆ UnsetVertexColorsByList() [1/4]

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.

Parameters
in_verticesThe indices of the vertices on which to remove the colors.
Returns
A reference to this CylinderKit.

◆ UnsetVertexColorsByList() [2/4]

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.

Parameters
in_verticesThe indices of the vertices on which to remove the colors.
in_apply_toThe cylinder component for which to remove the colors.
Returns
A reference to this CylinderKit.

◆ UnsetVertexColorsByList() [3/4]

CylinderKit& HPS::CylinderKit::UnsetVertexColorsByList ( size_t  in_count,
size_t const  in_vertices[] 
)

Removes the vertex visibilities on a selection of arbitrary vertices.

Parameters
in_countThe number of vertex visibilities to remove for this CylinderKit.
in_verticesThe indices of the vertices on which to remove the visibilities.
Returns
A reference to this CylinderKit.

◆ UnsetVertexColorsByList() [4/4]

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.

Parameters
in_countThe number of vertex visibilities to remove for this CylinderKit.
in_verticesThe indices of the vertices on which to remove the visibilities.
in_apply_toThe cylinder component that should be unset.
Returns
A reference to this CylinderKit.

◆ UnsetVertexColorsByRange() [1/2]

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.

Parameters
in_startThe offset into the vertices for this CylinderKit at which to start removing colors.
in_countThe number of vertex colors to remove for this CylinderKit.
Returns
A reference to this CylinderKit.

◆ UnsetVertexColorsByRange() [2/2]

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.

Parameters
in_startThe offset into the vertices for this CylinderKit at which to start removing colors.
in_countThe number of vertex colors to remove for this CylinderKit.
in_apply_toThe cylinder component for which to remove the colors.
Returns
A reference to this CylinderKit.

Member Data Documentation

◆ staticType

const HPS::Type HPS::CylinderKit::staticType = HPS::Type::CylinderKit
static

The documentation for this class was generated from the following file: