VizKit
3.3.7
|
Basic abstract object data type of core objects. More...
#include <VisualObject.h>
Public Member Functions | |
VisualObject () | |
The constructor. | |
VisualObject (const VisualItemIdentifier &anIdentifier) | |
Another constructor. | |
virtual | ~VisualObject () |
The destructor. | |
VisualObject (const VisualObject &other) | |
Copy constructor. | |
VisualObject & | operator= (const VisualObject &other) |
Assignment operator. | |
bool | operator< (const VisualObject &other) const |
Less than operator. | |
bool | operator> (const VisualObject &other) const |
Greater than operator. | |
bool | operator== (const VisualObject &other) const |
Equality operator. | |
bool | operator!= (const VisualObject &other) const |
Inequality operator. | |
virtual VisualObject * | clone (void) const =0 |
Copies the current VisualObject and returns a pointer to a new VisualObject. | |
const VisualItemIdentifier | getIdentifier (void) const |
Returns the identifier of the object item. | |
bool | addData (void *dataPtr, size_t dataSize) |
Adds data to the object. | |
void | freeData (void) |
Deallocates the data if there has been data allocated. | |
size_t | getDataSizeUsed (void) |
Returns the number of bytes currently used by the internal data buffer. | |
size_t | getDataSizeDeclared (void) |
Returns the declared size in bytes of the object. | |
void | setDataSizeDeclared (const size_t &aDataSizeDeclared) |
Sets the declared size in bytes of the object. | |
bool | dataSizeDeclaredHasBeenSet (void) |
Returns whether the declared data size has been set yet. | |
VisualObjectData * | getVisualObjectData (void) |
Returns a shared pointer to the visualObjectData. | |
virtual void | dataLoadDidEnd (const VisualItemIdentifier &identifier) |
Notification that the loading of data ended. | |
Protected Member Functions | |
bool | hasData (void) |
Answers the question whether the internal data buffer has data available. | |
char * | getData (void) |
Returns a pointer to the internal data buffer. | |
size_t | getDataSize (void) |
Returns the number of bytes of the internal data buffer. | |
Private Member Functions | |
void | copyObject (const VisualObject &other) |
Copy method for assignment operator and copy constructor. | |
Private Attributes | |
VisualObjectData * | visualObjectData |
Pointer to object data. |
Basic abstract object data type of core objects.
The constructor.
VisualObject::VisualObject | ( | const VisualItemIdentifier & | anIdentifier | ) |
Another constructor.
anIdentifier | Identifier of the object. |
VisualObject::~VisualObject | ( | ) | [virtual] |
The destructor.
VisualObject::VisualObject | ( | const VisualObject & | other | ) |
Copy constructor.
other | Reference to another VisualObject. |
bool VisualObject::addData | ( | void * | dataPtr, |
size_t | dataSize | ||
) |
Adds data to the object.
dataPtr | Pointer to data. |
dataSize | The number of bytes of the dataPtr. |
virtual VisualObject* VizKit::VisualObject::clone | ( | void | ) | const [pure virtual] |
Copies the current VisualObject and returns a pointer to a new VisualObject.
Implemented in VizKit::VisualString, VizKit::VisualFile, VizKit::VisualTextAutoScrollView, VizKit::VisualAsset, VizKit::VisualAnimation, VizKit::VisualImage, VizKit::VisualNotification, VizKit::VisualAnimationCluster, VizKit::VisualAnimationSequence, VizKit::VisualStyledString, VizKit::VisualStringStyle, and VizKit::VisualAnimationComponent.
void VisualObject::copyObject | ( | const VisualObject & | other | ) | [private] |
Copy method for assignment operator and copy constructor.
other | Another VisualObject. |
void VisualObject::dataLoadDidEnd | ( | const VisualItemIdentifier & | identifier | ) | [virtual] |
Notification that the loading of data ended.
identifier | The identifier of the data load request. |
Reimplemented in VizKit::VisualString, and VizKit::VisualImage.
bool VisualObject::dataSizeDeclaredHasBeenSet | ( | void | ) |
Returns whether the declared data size has been set yet.
void VisualObject::freeData | ( | void | ) |
Deallocates the data if there has been data allocated.
char * VisualObject::getData | ( | void | ) | [protected] |
Returns a pointer to the internal data buffer.
size_t VisualObject::getDataSize | ( | void | ) | [protected] |
Returns the number of bytes of the internal data buffer.
size_t VisualObject::getDataSizeDeclared | ( | void | ) |
Returns the declared size in bytes of the object.
size_t VisualObject::getDataSizeUsed | ( | void | ) |
Returns the number of bytes currently used by the internal data buffer.
const VisualItemIdentifier VisualObject::getIdentifier | ( | void | ) | const |
Returns the identifier of the object item.
Returns a shared pointer to the visualObjectData.
bool VisualObject::hasData | ( | void | ) | [protected] |
Answers the question whether the internal data buffer has data available.
bool VisualObject::operator!= | ( | const VisualObject & | other | ) | const |
Inequality operator.
other | Another VisualObject. |
bool VisualObject::operator< | ( | const VisualObject & | other | ) | const |
Less than operator.
other | Another VisualObject. |
VisualObject & VisualObject::operator= | ( | const VisualObject & | other | ) |
Assignment operator.
other | Reference to another VisualObject. |
bool VisualObject::operator== | ( | const VisualObject & | other | ) | const |
Equality operator.
other | Another VisualObject. |
bool VisualObject::operator> | ( | const VisualObject & | other | ) | const |
Greater than operator.
other | Another VisualObject. |
void VisualObject::setDataSizeDeclared | ( | const size_t & | aDataSizeDeclared | ) |
Sets the declared size in bytes of the object.
aDataSizeDeclared | The number of bytes declared. |
Pointer to object data.