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::LinePatternKit Class Reference

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

#include <hps.h>

Inheritance diagram for HPS::LinePatternKit:
Collaboration diagram for HPS::LinePatternKit:

Public Member Functions

 LinePatternKit ()
 The default constructor creates an empty LinePatternKit object. More...
 
 LinePatternKit (LinePatternKit const &in_kit)
 The copy constructor creates a new LinePatternKit object that contains the same settings as the source LinePatternKit. More...
 
 LinePatternKit (LinePatternKit &&in_that)
 The move constructor creates a LinePatternKit by transferring the underlying impl of the rvalue reference to this LinePatternKit thereby avoiding a copy and allocation. More...
 
LinePatternKitoperator= (LinePatternKit &&in_that)
 The move assignment operator transfers the underlying impl of the rvalue reference to this LinePatternKit thereby avoiding a copy. More...
 
virtual ~LinePatternKit ()
 
HPS::Type ObjectType () const
 
void Set (LinePatternKit const &in_kit)
 Copies the source LinePatternKit into this LinePatternKit. More...
 
void Show (LinePatternKit &out_kit) const
 Copies this LinePatternKit into the given LinePatternKit. More...
 
LinePatternKitoperator= (LinePatternKit const &in_kit)
 Copies the source LinePatternKit into this LinePatternKit. More...
 
bool Empty () const
 Indicates whether this LinePatternKit has any values set on it. More...
 
bool Equals (LinePatternKit const &in_kit) const
 Check if the source LinePatternKit is equivalent to this LinePatternKit. More...
 
bool operator== (LinePatternKit const &in_kit) const
 Check if the source LinePatternKit is equivalent to this LinePatternKit. More...
 
bool operator!= (LinePatternKit const &in_kit) const
 Check if the source LinePatternKit is not equivalent to this LinePatternKit. More...
 
LinePatternKitSetParallels (LinePatternParallelKitArray const &in_parallels)
 Sets the line pattern parallel array for this LinePatternKit. More...
 
LinePatternKitSetParallels (size_t in_count, LinePatternParallelKit const in_parallels [])
 Sets the line pattern parallel array for this LinePatternKit. More...
 
LinePatternKitSetParallel (LinePatternParallelKit const &in_parallel)
 Sets the line pattern parallel for this LinePatternKit. More...
 
LinePatternKitSetJoin (LinePattern::Join in_type)
 Sets the type of join to use for this LinePatternKit. More...
 
LinePatternKitUnsetParallels ()
 Removes the line pattern parallel array for this LinePatternKit. More...
 
LinePatternKitUnsetJoin ()
 Removes the type of join to use for this LinePatternKit. More...
 
LinePatternKitUnsetEverything ()
 Removes all settings from this LinePatternKit. More...
 
bool ShowParallels (LinePatternParallelKitArray &out_parallels) const
 Shows the line pattern parallel array for this LinePatternKit. More...
 
bool ShowJoin (LinePattern::Join &out_type) const
 Shows the type of join to use for this LinePatternKit. More...
 
virtual HPS::Type Type () const
 This function returns the true type of the underlying object. More...
 
virtual void Reset ()
 Resets this object to its initial, uninitialized state. More...
 
bool HasType (HPS::Type in_mask) const
 This function indicates whether this Object has the given Type mask. More...
 
intptr_t GetClassID () const
 Returns a unique identifier that is shared by all objects of the same class. More...
 
intptr_t GetInstanceID () const
 Returns an identifier that can be used to identify which instance of a class an object is. More...
 

Static Public Member Functions

static HPS::LinePatternKit GetDefault (LinePattern::Default in_default_line_pattern)
 Creates a LinePatternKit which contains the definition of the specified default line pattern. More...
 
template<typename T >
static intptr_t ClassID ()
 Unique identifier for this class. More...
 

Static Public Attributes

static const HPS::Type staticType = HPS::Type::LinePatternKit
 

Detailed Description

The LinePatternKit class is a user space object.

It is used when defining a line pattern.

Constructor & Destructor Documentation

◆ LinePatternKit() [1/3]

HPS::LinePatternKit::LinePatternKit ( )

The default constructor creates an empty LinePatternKit object.

◆ LinePatternKit() [2/3]

HPS::LinePatternKit::LinePatternKit ( LinePatternKit const &  in_kit)

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

Parameters
in_kitThe source LinePatternKit to copy.

◆ LinePatternKit() [3/3]

HPS::LinePatternKit::LinePatternKit ( LinePatternKit &&  in_that)

The move constructor creates a LinePatternKit by transferring the underlying impl of the rvalue reference to this LinePatternKit thereby avoiding a copy and allocation.

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

◆ ~LinePatternKit()

virtual HPS::LinePatternKit::~LinePatternKit ( )
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.

◆ Empty()

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

Indicates whether this LinePatternKit has any values set on it.

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

Reimplemented from HPS::Object.

◆ Equals()

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

Check if the source LinePatternKit is equivalent to this LinePatternKit.

Parameters
in_kitThe source LinePatternKit to compare to this LinePatternKit.
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.

◆ GetDefault()

static HPS::LinePatternKit HPS::LinePatternKit::GetDefault ( LinePattern::Default  in_default_line_pattern)
static

Creates a LinePatternKit which contains the definition of the specified default line pattern.

Parameters
in_default_line_patternThe default line pattern for which to get the corresponding LinePatternKit.
Returns
A LinePatternKit which contains the definition of the specified default line pattern.

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

◆ 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::LinePatternKit::ObjectType ( ) const
inlinevirtual

Reimplemented from HPS::Kit.

Here is the call graph for this function:

◆ operator!=()

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

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

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

◆ operator=() [1/2]

LinePatternKit& HPS::LinePatternKit::operator= ( LinePatternKit &&  in_that)

The move assignment operator transfers the underlying impl of the rvalue reference to this LinePatternKit thereby avoiding a copy.

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

◆ operator=() [2/2]

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

Copies the source LinePatternKit into this LinePatternKit.

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

◆ operator==()

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

Check if the source LinePatternKit is equivalent to this LinePatternKit.

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

◆ Reset()

◆ Set()

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

Copies the source LinePatternKit into this LinePatternKit.

Parameters
in_kitThe source LinePatternKit to copy.

◆ SetJoin()

LinePatternKit& HPS::LinePatternKit::SetJoin ( LinePattern::Join  in_type)

Sets the type of join to use for this LinePatternKit.

Parameters
in_typeThe type of join to use for this LinePatternKit.
Returns
A reference to this LinePatternKit.

◆ SetParallel()

LinePatternKit& HPS::LinePatternKit::SetParallel ( LinePatternParallelKit const &  in_parallel)

Sets the line pattern parallel for this LinePatternKit.

Parameters
in_parallelThe line pattern parallel for this LinePatternKit.
Returns
A reference to this LinePatternKit.

◆ SetParallels() [1/2]

LinePatternKit& HPS::LinePatternKit::SetParallels ( LinePatternParallelKitArray const &  in_parallels)

Sets the line pattern parallel array for this LinePatternKit.

Parameters
in_parallelsThe line pattern parallel array for this LinePatternKit.
Returns
A reference to this LinePatternKit.

◆ SetParallels() [2/2]

LinePatternKit& HPS::LinePatternKit::SetParallels ( size_t  in_count,
LinePatternParallelKit const  in_parallels[] 
)

Sets the line pattern parallel array for this LinePatternKit.

Parameters
in_countSize of the following array.
in_parallelsThe line pattern parallel array for this LinePatternKit.
Returns
A reference to this LinePatternKit.

◆ Show()

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

Copies this LinePatternKit into the given LinePatternKit.

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

◆ ShowJoin()

bool HPS::LinePatternKit::ShowJoin ( LinePattern::Join out_type) const

Shows the type of join to use for this LinePatternKit.

Parameters
out_typeThe type of join to use for this LinePatternKit.
Returns
true if a join was set, false otherwise.

◆ ShowParallels()

bool HPS::LinePatternKit::ShowParallels ( LinePatternParallelKitArray out_parallels) const

Shows the line pattern parallel array for this LinePatternKit.

Parameters
out_parallelsThe line pattern parallel array for this LinePatternKit.
Returns
true if a line pattern parallel array was 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.

◆ UnsetEverything()

LinePatternKit& HPS::LinePatternKit::UnsetEverything ( )

Removes all settings from this LinePatternKit.

Returns
A reference to this LinePatternKit.

◆ UnsetJoin()

LinePatternKit& HPS::LinePatternKit::UnsetJoin ( )

Removes the type of join to use for this LinePatternKit.

Returns
A reference to this LinePatternKit.

◆ UnsetParallels()

LinePatternKit& HPS::LinePatternKit::UnsetParallels ( )

Removes the line pattern parallel array for this LinePatternKit.

Returns
A reference to this LinePatternKit.

Member Data Documentation

◆ staticType

const HPS::Type HPS::LinePatternKit::staticType = HPS::Type::LinePatternKit
static

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