#include <VisualAsset.h>
Inherits VizKit::VisualObject.
List of all members.
Detailed Description
Dimensionless asset that contains texture, boxing information, and optional animations.
Constructor & Destructor Documentation
| VisualAsset::VisualAsset |
( |
|
) |
|
| VisualAsset::~VisualAsset |
( |
|
) |
|
Copy constructor.
- Parameters:
-
Member Function Documentation
Adds an animation to the asset.
- Parameters:
-
| anAnimation | Reference to an animation. |
| void VisualAsset::animateLocation |
( |
double |
currentPosition, |
|
|
void * |
userData | |
|
) |
| | [static] |
Callback function that is called during animation.
- Parameters:
-
| currentPosition | The current position of the animation. |
| userData | Pointer to VisualAsset instance. |
| void VisualAsset::animateOpacity |
( |
double |
currentPosition, |
|
|
void * |
userData | |
|
) |
| | [static] |
Callback function that is called during animation.
- Parameters:
-
| currentPosition | The current position of the animation. |
| userData | Pointer to VisualAsset instance. |
| void VisualAsset::animateRotation |
( |
double |
currentPosition, |
|
|
void * |
userData | |
|
) |
| | [static] |
Callback function that is called during animation.
- Parameters:
-
| currentPosition | The current position of the animation. |
| userData | Pointer to VisualAsset instance. |
| void VisualAsset::animateScaleFactor |
( |
double |
currentPosition, |
|
|
void * |
userData | |
|
) |
| | [static] |
Callback function that is called during animation.
- Parameters:
-
| currentPosition | The current position of the animation. |
| userData | Pointer to VisualAsset instance. |
| void VisualAsset::clear |
( |
void |
|
) |
|
| VisualAsset * VisualAsset::clone |
( |
void |
|
) |
const [virtual] |
| void VisualAsset::copy |
( |
const VisualAsset & |
other |
) |
[private] |
Copy method for assignment operator and copy constructor.
- Parameters:
-
| void VisualAsset::doDraw |
( |
const VertexChain & |
aVertexChain |
) |
const [private] |
Draws a vertex chain (including texture data if available).
- Parameters:
-
| aVertexChain | Vertex chain to draw. |
Draws the asset.
- Parameters:
-
| vertexChainName | The identifier of the VertexChain to draw. |
| void VisualAsset::draw |
( |
void |
|
) |
const |
| void VisualAsset::drawBoxOutline |
( |
void |
|
) |
const [private] |
Draws the outline of the stage box.
Returns the VisualAnimation where the animated property matches.
- Parameters:
-
| anAnimatedProperty | Parameter that specifies the animated property of the animation. |
- Returns:
- The VisualAnimation where the animated property matches.
Returns the stage box of the asset. The stage box is the bounding box.
- Returns:
- The stage box of the asset.
Returns the camera of the asset.
- Returns:
- The camera of the asset.
Returns the current animation value of an animated VisualStagePosition.
- Parameters:
-
| startPosition | The start position. |
| stopPosition | The stop position. |
- Returns:
- The current animation value of the property.
| double VisualAsset::getCurrentAnimationValueOfProperty |
( |
const AnimatedProperty & |
anAnimatedProperty |
) |
const |
Returns the current animation value of a property which can be animated.
- Parameters:
-
| anAnimatedProperty | Parameter that specifies the queried property of the animation. |
- Returns:
- The current animation value of the property.
| bool VisualAsset::getDebugMode |
( |
void |
|
) |
|
Returns the current debug mode.
- Returns:
- The current debug mode. True means debug mode is on, false means it is turned off.
Returns the image data of the asset.
- Returns:
- The image data of the asset.
| double VisualAsset::getOpacityValue |
( |
void |
|
) |
const |
Returns the current opacity value (alpha value).
- Returns:
- The current opacity value (alpha value).
Returns the position of the asset's stage box.
- Returns:
- The position of the asset's stage box.
| double VisualAsset::getRotationAngle |
( |
void |
|
) |
const |
Returns the current rotation angle value.
- Returns:
- The current rotation angle value.
| double VisualAsset::getScaleFactor |
( |
void |
|
) |
const |
Returns the current scale factor.
- Returns:
- The current scale factor.
| bool VisualAsset::hasImage |
( |
void |
|
) |
const |
Answers the question whether the asset has image data.
- Returns:
- True if asset has image data, false if not.
| void VisualAsset::init |
( |
void |
|
) |
[private] |
| bool VisualAsset::operator!= |
( |
const VisualAsset & |
other |
) |
const |
Inequality operator.
- Parameters:
-
| bool VisualAsset::operator< |
( |
const VisualAsset & |
other |
) |
const |
Less than operator.
- Parameters:
-
Assignment operator.
- Parameters:
-
| bool VisualAsset::operator== |
( |
const VisualAsset & |
other |
) |
const |
Equality operator.
- Parameters:
-
| void VisualAsset::removeAnimations |
( |
AnimatedProperty |
anAnimatedProperty = kUndefinedAnimatedProperty |
) |
|
Clears all currently running animations.
- Parameters:
-
| anAnimatedProperty | Optional parameter that specifies the animated property of the animations. With default argument kUndefinedAnimatedProperty, all animations are removed. |
| void VisualAsset::removeImage |
( |
void |
|
) |
|
Removes the image of the asset.
| void VisualAsset::setCamera |
( |
const VisualCamera & |
cameraRef |
) |
|
Sets the dimensions and direction of the camera view.
- Parameters:
-
| cameraRef | Camera whose dimensions and direction should be used by asset. |
| void VisualAsset::setDebugMode |
( |
bool |
requestedDebugMode |
) |
|
Sets the debug mode.
- Parameters:
-
| requestedDebugMode | The debug mode. True turns debug mode on, false turns it off. |
| void VisualAsset::setImage |
( |
const VisualImage & |
anImage |
) |
|
Sets the image of the asset.
- Parameters:
-
| anImage | Reference to the image. |
| void VisualAsset::setOpacityValue |
( |
double |
anOpacityValue |
) |
|
Sets the opacity value (alpha value).
- Parameters:
-
| anOpacityValue | The opacity value (alpha value). |
Sets the position of the asset's stage box.
- Parameters:
-
| aPosition | The requested position of the asset's stage box. |
| void VisualAsset::setRotationAngle |
( |
double |
aRotationAngle |
) |
|
Sets the rotation angle value.
- Parameters:
-
| aRotationAngle | The requested rotation angle. |
| void VisualAsset::setScaleFactor |
( |
double |
aScaleFactor |
) |
|
Sets the scale value.
- Parameters:
-
| aScaleFactor | The factor by which the size of the asset should be multiplied when rendered. |
| void VisualAsset::updateCoords |
( |
void |
|
) |
|
Updates the coords of the assets.
| void VisualAsset::updateLocation |
( |
double |
currPosition |
) |
|
Updates the location for an animation.
- Parameters:
-
| currPosition | The current position of the animation. |
Member Data Documentation
The identifier of the default vertex chain.
The current opacity value (alpha value).
The current rotation angle.
The current scale factor value.
The stage box of the asset.
The documentation for this class was generated from the following files: