#include <VisComponentState.h>
Collaboration diagram for VisComponentState:
Public Member Functions | |
VisComponentState & | operator= (const VisComponentState &s) |
void | interpolate (const VisComponentState &source, const VisComponentState &target, float alpha) |
void | print () |
Public Attributes | |
Point3f | position |
double | rotationAngle |
unsigned int | width |
unsigned int | height |
float | scaleFactorX |
float | scaleFactorY |
float | scaleFactorZ |
float | color [4] |
VisComponentState& VisComponentState::operator= | ( | const VisComponentState & | s | ) | [inline] |
Assignment operator.
s | the VisComponentState object whose values will be assigned to this one. |
void VisComponentState::interpolate | ( | const VisComponentState & | source, | |
const VisComponentState & | target, | |||
float | alpha | |||
) |
Sets this state as the result of linearly interpolating the source and target states by the given interpolation parameter value alpha (between 0 and 1).
source | the initial state for the interpolation | |
target | the final state for the interpolation | |
alpha | the interpolation parameter |
void VisComponentState::print | ( | ) |
Prints the data in the current state for debugging purposes.
The position of the center of the component (global - i.e., in relation to screen coordinates).
The rotation angle in radians of the component, giving its orientation.
unsigned int VisComponentState::width |
The width of the component
unsigned int VisComponentState::height |
The height of the component
The x-coordinate scale factor being applied to the component
The y-coordinate scale factor being applied to the component
The z-coordinate scale factor being applied to the component
float VisComponentState::color[4] |
The RGBA color of this component.