VisComponentState Class Reference

#include <VisComponentState.h>

Collaboration diagram for VisComponentState:

Collaboration graph
[legend]
List of all members.

Public Member Functions

VisComponentStateoperator= (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]

Detailed Description

This class holds the state data for a VisComponent class. The data is kept here to allow transitions and manipulation of the VisComponent states. The attributes are public to allow easy and fast access. There is no need to encapsulate them since this class is supposed to live privately inside a VisComponent object only and rarely be accessed by any other class.

Author:
Fabricio Anastacio - fabriciocfa@yahoo.com
Since:
June 25, 2007


Member Function Documentation

VisComponentState& VisComponentState::operator= ( const VisComponentState s  )  [inline]

Assignment operator.

Parameters:
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).

Parameters:
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.


Member Data Documentation

Point3f VisComponentState::position

The position of the center of the component (global - i.e., in relation to screen coordinates).

double VisComponentState::rotationAngle

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

float VisComponentState::scaleFactorX

The x-coordinate scale factor being applied to the component

float VisComponentState::scaleFactorY

The y-coordinate scale factor being applied to the component

float VisComponentState::scaleFactorZ

The z-coordinate scale factor being applied to the component

float VisComponentState::color[4]

The RGBA color of this component.


The documentation for this class was generated from the following files:
Generated on Fri Dec 21 17:43:50 2007 for LargeDisplayFramework by  doxygen 1.5.2