AnimEngine
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DeformationBox Class Reference
Inheritance diagram for DeformationBox:
Inheritance graph
[legend]
Collaboration diagram for DeformationBox:
Collaboration graph
[legend]

Public Member Functions

 DeformationBox (const glm::vec3 &min_point, const glm::vec3 &max_point)
 
 DeformationBox (const BoundingBox &bbox)
 
virtual void draw (const MVPset &MVP, Program *shader=nullptr) override
 
const std::array< glm::vec3, 8 > & getControlPoints () const
 
const glm::vec3 & getControlPoint (size_t index) const
 
void setControlPoint (size_t index, const glm::vec3 &location)
 
void setHighlight (size_t index, bool highlight)
 
void clearHighlight ()
 
void reset ()
 
- Public Member Functions inherited from BoundingBox
 BoundingBox (const glm::vec3 &min_point, const glm::vec3 &max_point)
 
virtual bool canOverrideShader () const override
 
virtual bool requiesOverrideShader () const
 
- Public Member Functions inherited from DrawableInterfaceComponent
virtual bool isDrawable () const override
 
virtual bool isHidden () const
 
virtual bool isGloballyIlluminated () const
 
virtual bool requiresOverrideShader () const =0
 
- Public Member Functions inherited from RootComponent
virtual bool isPoseable () const
 
virtual bool isPosed () const
 

Protected Member Functions

void computeInitialControlPoints ()
 
void initDrawAssets ()
 
void updateDrawAssets ()
 

Protected Attributes

std::array< glm::vec3, 8 > control_points
 
std::array< glm::vec3, 8 > original_points
 
std::array< float, 8 > highlights = {0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}
 

Additional Inherited Members

- Public Attributes inherited from BoundingBox
const glm::vec3 min_point
 
const glm::vec3 max_point
 

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