Support Forum       G3D Web Page     
Public Member Functions | List of all members
G3D::ArticulatedModel::ScalePartTransformCallback Class Reference

Rescales each part (and the position of its cframe) by a constant factor. More...

Inherits G3D::ArticulatedModel::PartCallback.

Public Member Functions

 ScalePartTransformCallback (float s)
 
virtual void operator() (ArticulatedModel::Part *part, const CFrame &partFrame, shared_ptr< ArticulatedModel > m, const int treeDepth) override
 Override to implement processing of part. More...
 

Detailed Description

Rescales each part (and the position of its cframe) by a constant factor.

Constructor & Destructor Documentation

◆ ScalePartTransformCallback()

G3D::ArticulatedModel::ScalePartTransformCallback::ScalePartTransformCallback ( float  s)
inline

Member Function Documentation

◆ operator()()

virtual void G3D::ArticulatedModel::ScalePartTransformCallback::operator() ( ArticulatedModel::Part part,
const CFrame worldToPartFrame,
shared_ptr< ArticulatedModel model,
const int  treeDepth 
)
overridevirtual

Override to implement processing of part.

Parameters
worldToPartFrameThe net transformation in this pose from world space to part's object space
treeDepthdepth in the hierarchy. 0 = a root

Implements G3D::ArticulatedModel::PartCallback.


documentation generated on Wed Nov 24 2021 08:01:53 using doxygen 1.8.15