Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

Image2D Class Reference

MetaObject implementing Image2D Object Type. More...

#include <image2D.hh>

Inheritance diagram for Image2D:

MetaObject LocalImage2D RemoteImage2D List of all members.

Public Member Functions

Access Subobjects
Access Subobjects

Static Public Member Functions

Protected Attributes


Detailed Description

MetaObject implementing Image2D Object Type.

Base object type for 2D image objects: provides position, orientation and size properties. These three properties define a transformation for this 2D image relative to its parent image. An image should be displayed superimposed on top of its parent image, and its child image objects should be displayed superimposed on top of it.

Definition at line 33 of file image2D.hh.


Constructor & Destructor Documentation

Image2D::Image2D MetaObject superobject  ) 
 

Constructor.

Definition at line 33 of file image2D.cc.

Image2D::~Image2D  )  [virtual]
 

Destructor.

Definition at line 38 of file image2D.cc.


Member Function Documentation

void Image2D::getImage string &  s  )  [virtual]
 

Definition at line 166 of file image2D.cc.

string Image2D::getImage  )  [virtual]
 

This is the image data. The datatype indicates the data format. Suggested datatypes to support are: PNG, JPEG, BMP, TIFF, PCX, PNM, and XPM.

Definition at line 158 of file image2D.cc.

string Image2D::getImageDatatype  )  [virtual]
 

Get the datatype of image2D:image property.

Definition at line 173 of file image2D.cc.

int Image2D::getImageLength  )  [virtual]
 

Get size of image data (in bytes).

Definition at line 201 of file image2D.cc.

double Image2D::getOrientation  )  [virtual]
 

Get the value of orientation property.

This is the orientation or rotation of this object relative to the orientation of its parent image object (clockwise).

Definition at line 123 of file image2D.cc.

void Image2D::getPosition double &  x,
double &  y
[virtual]
 

Get the value of position property.

This is the position or translation of this object relative to the origin of its parent image object.

Definition at line 106 of file image2D.cc.

virtual PropertyAccessControl* Image2D::getPropertyAccessControl  )  [inline, virtual]
 

Get default access control policy for subobjects.

Definition at line 58 of file image2D.hh.

void Image2D::getScaling double &  x,
double &  y
[virtual]
 

Get the values of scaling property.

This is the size of this object, and a scaling transformation to apply to all children of this object. All objects under the same 2D object or space with the same scaling value should be rendered at the same size (regardless of the size of the shape/bitmap itself).

Definition at line 142 of file image2D.cc.

const string Image2D::getType  )  [virtual]
 

Return type string ("image2D").

Definition at line 90 of file image2D.cc.

void Image2D::registerExtenders  )  [static]
 

Register Extenders.

Definition at line 95 of file image2D.cc.

void Image2D::setImage const string &  value,
const string &  datatype = "?",
PropertyAccessControl ac = NULL
[virtual]
 

Set image property.

Parameters:
value The new value
datatype The new datatype: if omitted, then the existing datatype will be preserved.

Definition at line 179 of file image2D.cc.

Referenced by LocalImage2D::initialize(), and setImageFromFile().

void Image2D::setImageFromFile const string &  filename,
const string &  datatype = "?",
PropertyAccessControl ac = NULL
[virtual]
 

Set contents of image property with dat aread from file.

Parameters:
filename Filename
datatype The datatype

Definition at line 186 of file image2D.cc.

void Image2D::setOrientation double  o,
PropertyAccessControl ac = NULL
[virtual]
 

Set orientation property.

Definition at line 134 of file image2D.cc.

Referenced by LocalImage2D::initialize().

void Image2D::setPosition double  x,
double  y,
PropertyAccessControl ac = NULL
[virtual]
 

Set position property.

Definition at line 115 of file image2D.cc.

Referenced by LocalImage2D::initialize().

virtual void Image2D::setPropertyAccessControl PropertyAccessControl ac  )  [inline, virtual]
 

Set default access control policy for subobjects.

Definition at line 53 of file image2D.hh.

void Image2D::setScaling double  x,
double  y,
PropertyAccessControl ac = NULL
[virtual]
 

Set caling property.

Definition at line 150 of file image2D.cc.

Referenced by LocalImage2D::initialize().


Member Data Documentation

PropertyAccessControl* Image2D::accessControl [protected]
 

Definition at line 36 of file image2D.hh.

Referenced by getPropertyAccessControl(), Image2D(), LocalImage2D::initialize(), setImage(), setOrientation(), setPosition(), setPropertyAccessControl(), and setScaling().


The documentation for this class was generated from the following files:
Generated on Tue Aug 12 03:55:54 2003 for Interreality Project - VOS by doxygen 1.3.2