< Home

< Table of Contents

REFERENCE MANUAL

PerformanceKit Class Reference

#include <hps.h>

Inheritance diagram for PerformanceKit:
Object

Public Member Functions

bool Empty () const
 
bool Equals (PerformanceKit const &in_kit) const
 
Type ObjectType () const
 
bool operator!= (PerformanceKit const &in_kit) const
 
PerformanceKitoperator= (PerformanceKit &&in_that)
 
PerformanceKitoperator= (PerformanceKit const &in_kit)
 
bool operator== (PerformanceKit const &in_kit) const
 
 PerformanceKit ()
 
 PerformanceKit (PerformanceKit const &in_kit)
 
 PerformanceKit (PerformanceKit &&in_that)
 
void Set (PerformanceKit const &in_kit)
 
PerformanceKitSetDisplayLists (Performance::DisplayLists in_display_list=Performance::DisplayLists::SegmentDisplayLists)
 
PerformanceKitSetStaticModel (Performance::StaticModel in_model_type)
 
void Show (PerformanceKit &out_kit) const
 
bool ShowDisplayLists (Performance::DisplayLists &out_display_list) const
 
bool ShowStaticModel (Performance::StaticModel &out_model_type) const
 
PerformanceKitUnsetDisplayLists ()
 
PerformanceKitUnsetEverything ()
 
PerformanceKitUnsetStaticModel ()
 
virtual ~PerformanceKit ()
 
- Public Member Functions inherited from Object
intptr_t GetClassID () const
 
intptr_t GetInstanceID () const
 
bool HasType (Type in_mask) const
 
 Object (Object &&in_that)
 
Objectoperator= (Object const &other_object)
 
Objectoperator= (Object &&in_that)
 
virtual void Reset ()
 
Type Type () const
 

Static Public Member Functions

static PerformanceKit GetDefault ()
 
- Static Public Member Functions inherited from Object
template<typename T >
static intptr_t ClassID ()
 

Detailed Description

The PerformanceKit class is a user space object, useful for carrying a group of attribute settings related to performance settings. Calling PerformanceKit::GetDefault() will return a kit with values found in this table.

Constructor & Destructor Documentation

PerformanceKit::PerformanceKit ( )

Initializes an empty kit.

PerformanceKit::PerformanceKit ( PerformanceKit const &  in_kit)

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

Parameters
in_kitThe source object to copy.
PerformanceKit::PerformanceKit ( PerformanceKit &&  in_that)

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

Parameters
in_thatAn rvalue reference to a PerformanceKit to take the impl from.
virtual PerformanceKit::~PerformanceKit ( )
virtual

Destroy this kit.

Member Function Documentation

bool PerformanceKit::Empty ( ) const
virtual

Indicates whether this object has any values set on it.

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

Reimplemented from Object.

bool PerformanceKit::Equals ( PerformanceKit const &  in_kit) const

Check if the source PerformanceKit is equivalent to this object.

Parameters
in_kitThe source PerformanceKit to compare to this object.
Returns
true if the objects are equivalent, false otherwise.
static PerformanceKit PerformanceKit::GetDefault ( )
static

Creates a PerformanceKit which contains the default settings. The returned object will not necessarily have values set for every option, but it will have settings for those options where it is reasonable to have a default.

Returns
A PerformanceKit with the default settings.
Type PerformanceKit::ObjectType ( ) const
inlinevirtual

This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.

Returns
The declared type of the object in question, which may differ from the true, underlying type.

Reimplemented from Object.

bool PerformanceKit::operator!= ( PerformanceKit const &  in_kit) const

Check if the source PerformanceKit is not equivalent to this object.

Parameters
in_kitThe source PerformanceKit to compare to this object.
Returns
true if the objects are not equivalent, false otherwise.
PerformanceKit& PerformanceKit::operator= ( PerformanceKit &&  in_that)

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

Parameters
in_thatAn rvalue reference to a PerformanceKit to take the impl from.
Returns
A reference to this PerformanceKit.
PerformanceKit& PerformanceKit::operator= ( PerformanceKit const &  in_kit)

Copies the source PerformanceKit into this object.

Parameters
in_kitThe source PerformanceKit to copy.
Returns
A reference to this object.
bool PerformanceKit::operator== ( PerformanceKit const &  in_kit) const

Check if the source PerformanceKit is equivalent to this object.

Parameters
in_kitThe source PerformanceKit to compare to this object.
Returns
true if the objects are equivalent, false otherwise.
void PerformanceKit::Set ( PerformanceKit const &  in_kit)

Copies the source PerformanceKit into this object.

Parameters
in_kitThe source object to copy.
PerformanceKit& PerformanceKit::SetDisplayLists ( Performance::DisplayLists  in_display_list = Performance::DisplayLists::SegmentDisplayLists)

Sets the display list state. Display lists enables the drivers to cache data in video card memory for improved rendering performance.

Parameters
in_display_listThe type of display lists, if any, that should be used.
Returns
A reference to this object.
PerformanceKit& PerformanceKit::SetStaticModel ( Performance::StaticModel  in_model_type)

Sets the static tree state. This will create a compiled draw tree for the scene which should result in better rendering performance. It is important to note that the compiled tree will need to be regenerated if a change occurs within the segment tree.

Parameters
in_model_typeThe type of static tree, if any, that should be used.
Returns
A reference to this object.
void PerformanceKit::Show ( PerformanceKit out_kit) const

Copies this object into the given PerformanceKit.

Parameters
out_kitThe PerformanceKit to populate with the contents of this object.
bool PerformanceKit::ShowDisplayLists ( Performance::DisplayLists out_display_list) const

Shows the display list state.

Parameters
out_display_listThe type of display lists, if any.
Returns
true if the setting is valid, false otherwise.
bool PerformanceKit::ShowStaticModel ( Performance::StaticModel out_model_type) const

Shows the static model state.

Parameters
out_model_typeThe type of static tree, if any
Returns
true if the setting is valid, false otherwise.
PerformanceKit& PerformanceKit::UnsetDisplayLists ( )

Removes the display list setting.

Returns
A reference to this object.
PerformanceKit& PerformanceKit::UnsetEverything ( )

Removes all settings from this object.

Returns
A reference to this object.
PerformanceKit& PerformanceKit::UnsetStaticModel ( )

Removes the static model state, releasing the compiled draw tree.

Returns
A reference to this object.

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