#include <hps.h>
Public Member Functions | |
TreeContext (bool in_create=true) | |
TreeContext (TreeContext const &in_that) | |
TreeContext (TreeContext &&in_that) | |
TreeContext & | operator= (TreeContext &&in_that) |
virtual | ~TreeContext () |
HPS::Type | ObjectType () const |
TreeContext & | operator= (TreeContext const &in_that) |
bool | Equals (TreeContext const &in_that) const |
bool | operator== (TreeContext const &in_that) const |
bool | operator!= (TreeContext const &in_that) const |
![]() | |
Object (Object const &that) | |
Object & | operator= (Object const &other_object) |
Object (Object &&in_that) | |
Object & | operator= (Object &&in_that) |
HPS::Type | Type () const |
virtual bool | Empty () const |
virtual void | Reset () |
bool | HasType (HPS::Type in_mask) const |
intptr_t | GetClassID () const |
intptr_t | GetInstanceID () const |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
The TreeContext class is a user space object. It contains a spatial partition used for selection and relation computations with shells. If many world-space selections are going to be computed without modifying the segment tree, using the same tree context for all of them can be a significant optimization. If one is not specified, a new one is computed internally each time.
HPS::TreeContext::TreeContext | ( | bool | in_create = true | ) |
The default constructor creates a new TreeContext object.
in_create | whether to create the underlying spatial tree context. |
HPS::TreeContext::TreeContext | ( | TreeContext const & | in_that | ) |
The copy constructor shares a TreeContext object.
in_that | The source TreeContext to share. |
HPS::TreeContext::TreeContext | ( | TreeContext && | in_that | ) |
The move constructor creates a new TreeContext by transferring the underlying impl of the rvalue reference to this TreeContext thereby avoiding a copy and allocation.
in_that | An rvalue reference to a TreeContext to take the impl from. |
|
virtual |
The destructor cleans up the tree context created by the constructor.
bool HPS::TreeContext::Equals | ( | TreeContext const & | in_that | ) | const |
Check if the source TreeContext is the same as this TreeContext.
in_kit | The source TreeContext to compare to this TreeContext. |
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from HPS::Object.
bool HPS::TreeContext::operator!= | ( | TreeContext const & | in_that | ) | const |
Check if the source TreeContext is not the same as this TreeContext.
in_kit | The source TreeContext to compare to this TreeContext. |
TreeContext& HPS::TreeContext::operator= | ( | TreeContext && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this TreeContext thereby avoiding a copy.
in_that | An rvalue reference to a TreeContext to take the impl from. |
TreeContext& HPS::TreeContext::operator= | ( | TreeContext const & | in_that | ) |
Shares the source TreeContext.
in_kit | The source TreeContext to share. |
bool HPS::TreeContext::operator== | ( | TreeContext const & | in_that | ) | const |
Check if the source TreeContext is the same as this TreeContext.
in_kit | The source TreeContext to compare to this TreeContext. |