COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Types | Public Member Functions | Protected Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
covise::coDoGeometry Class Reference

#include <coDoGeometry.h>

Inheritance diagram for covise::coDoGeometry:
Inheritance graph
[legend]
Collaboration diagram for covise::coDoGeometry:
Collaboration graph
[legend]

Public Types

enum  { NumChannels = 8 }
 
enum  { NumColorMaps = 2 }
 

Public Member Functions

 coDoGeometry (const coObjInfo &info)
 
void setGeometry (int gtype, const coDistributedObject *geo)
 
void setColors (int cattr, const coDistributedObject *c, size_t chan=0)
 
void setNormals (int nattr, const coDistributedObject *n)
 
void setTexture (int tattr, const coDistributedObject *t)
 
void setVertexAttribute (int vattr, const coDistributedObject *v)
 
void setColorMap (int cmattr, const coDistributedObject *cm, size_t chan=0)
 
 coDoGeometry (const coObjInfo &info, coShmArray *arr)
 
 coDoGeometry (const coObjInfo &info, const coDistributedObject *geo)
 
const coDistributedObjectgetGeometry () const
 
const coDistributedObjectgetColors (size_t chan=0) const
 
const coDistributedObjectgetNormals () const
 
const coDistributedObjectgetTexture () const
 
const coDistributedObjectgetVertexAttribute () const
 
const coDistributedObjectgetColorMap (size_t chan=0) const
 
int getGeometryType () const
 
int getColorAttributes () const
 
void setColorAttributes (int cattr)
 
int getNormalAttributes () const
 
void setNormalAttributes (int nattr)
 
int getTextureAttributes () const
 
void setTextureAttributes (int nattr)
 
int getVertexAttributeAttributes () const
 
void setVertexAttributeAttributes (int vattr)
 
int getColorMapAttributes () const
 
void setColorMapAttributes (int cmattr)
 
- Public Member Functions inherited from covise::coDistributedObject
void getShmLocation (int &shmSegNo, shmSizeType &offset) const
 Get my location in shared memory. More...
 
void addAttribute (const char *, const char *)
 Attach an attribute to an object. More...
 
void addAttributes (int, const char *const *, const char *const *)
 Attach multiple attributes to an object. More...
 
const char * getAttribute (const char *) const
 get one attribute More...
 
int getNumAttributes () const
 get number of attributes More...
 
int getAllAttributes (const char ***name, const char ***content) const
 get all attributes More...
 
void copyAllAttributes (const coDistributedObject *src)
 copy all attributes from src to this object More...
 
char * getName () const
 get the object's name More...
 
const char * getType () const
 get the object's type More...
 
int isType (const char *reqType) const
 check whether this is a certain type More...
 
bool objectOk () const
 check whether object was created or received ok More...
 
 coDistributedObject ()
 
 coDistributedObject (const coObjInfo &info)
 
 coDistributedObject (const coObjInfo &info, const char *t)
 
 coDistributedObject (const coObjInfo &info, int shmSeg, shmSizeType offs, char *t)
 
virtual ~coDistributedObject ()
 
coDistributedObjectclone (const coObjInfo &newinfo) const
 
void copyObjInfo (coObjInfo *info) const
 
const coDistributedObjectcreateUnknown () const
 
int * store_header (int, int, int, int *, data_type *, long *, int **)
 
int restore_header (int **, int, int *, int *, shmSizeType *)
 
void init_header (int *, int *, int, data_type **, long **)
 
int update_shared_dl (int count, covise_data_list *dl)
 
int store_shared_dl (int count, covise_data_list *dl)
 
int restore_shared_dl (int count, covise_data_list *dl)
 
void setType (const char *, const char *)
 
int getObjectInfo (coDoInfo **) const
 
int get_type_no () const
 
int access (access_type)
 
int destroy ()
 
char * object_on_hosts () const
 
int incRefCount () const
 
int decRefCount () const
 
int getRefCount () const
 
void print () const
 
void getObjectFromShm ()
 Common function for all read-Constructors: More...
 
bool checkObject () const
 Check object: return true if valid, false if not. More...
 

Protected Member Functions

int rebuildFromShm ()
 
int getObjInfo (int, coDoInfo **) const
 
coDoGeometrycloneObject (const coObjInfo &newinfo) const
 
- Protected Member Functions inherited from covise::coDistributedObject
int getShmArray () const
 
int createFromShm (coShmArray *arr)
 
bool checkObj (int shmSegNo, shmSizeType shmOffs, bool &printed) const
 Check object in shared memory. More...
 

Static Private Member Functions

static coDistributedObjectvirtualCtor (coShmArray *arr)
 

Private Attributes

coIntShm geometry_type
 
const coDistributedObjectgeometry
 
coIntShm color_attr
 
const coDistributedObjectcolors [NumChannels]
 
coIntShm normal_attr
 
const coDistributedObjectnormals
 
coIntShm texture_attr
 
const coDistributedObjecttexture
 
coIntShm vertexAttribute_attr
 
const coDistributedObjectvertexAttribute
 
coIntShm colorMap_attr
 
const coDistributedObjectcolorMap [NumColorMaps]
 

Friends

class coDoInitializer
 

Additional Inherited Members

- Static Public Member Functions inherited from covise::coDistributedObject
static const coDistributedObjectcreateFromShm (const coObjInfo &newinfo)
 
static const coDistributedObjectcreateUnknown (coShmArray *)
 
static const coDistributedObjectcreateUnknown (int seg, shmSizeType offs)
 
static int calcType (const char *)
 
static char * calcTypeString (int)
 
static int set_vconstr (const char *, coDistributedObject *(*)(coShmArray *))
 
- Protected Attributes inherited from covise::coDistributedObject
coIntShm version
 
coIntShm refcount
 
coShmArrayshmarr
 
coStringShmArrayattributes
 
coDoHeaderheader
 
char type_name [7]
 
int type_no
 
char * name
 
int loc_version
 
bool new_ok
 
int size
 
char * attribs
 

Member Enumeration Documentation

anonymous enum
Enumerator
NumChannels 
anonymous enum
Enumerator
NumColorMaps 

Constructor & Destructor Documentation

covise::coDoGeometry::coDoGeometry ( const coObjInfo info)
inline
coDoGeometry::coDoGeometry ( const coObjInfo info,
coShmArray arr 
)
coDoGeometry::coDoGeometry ( const coObjInfo info,
const coDistributedObject geo 
)

Member Function Documentation

coDoGeometry * coDoGeometry::cloneObject ( const coObjInfo newinfo) const
protectedvirtual
int covise::coDoGeometry::getColorAttributes ( ) const
inline
const coDistributedObject* covise::coDoGeometry::getColorMap ( size_t  chan = 0) const
inline
int covise::coDoGeometry::getColorMapAttributes ( ) const
inline
const coDistributedObject* covise::coDoGeometry::getColors ( size_t  chan = 0) const
inline
const coDistributedObject* covise::coDoGeometry::getGeometry ( ) const
inline
int covise::coDoGeometry::getGeometryType ( ) const
inline
int covise::coDoGeometry::getNormalAttributes ( ) const
inline
const coDistributedObject* covise::coDoGeometry::getNormals ( ) const
inline
int coDoGeometry::getObjInfo ( int  no,
coDoInfo **  il 
) const
protectedvirtual

Reimplemented from covise::coDistributedObject.

const coDistributedObject* covise::coDoGeometry::getTexture ( ) const
inline
int covise::coDoGeometry::getTextureAttributes ( ) const
inline
const coDistributedObject* covise::coDoGeometry::getVertexAttribute ( ) const
inline
int covise::coDoGeometry::getVertexAttributeAttributes ( ) const
inline
int coDoGeometry::rebuildFromShm ( )
protectedvirtual
void covise::coDoGeometry::setColorAttributes ( int  cattr)
inline
void coDoGeometry::setColorMap ( int  cmattr,
const coDistributedObject cm,
size_t  chan = 0 
)
void covise::coDoGeometry::setColorMapAttributes ( int  cmattr)
inline
void coDoGeometry::setColors ( int  cattr,
const coDistributedObject c,
size_t  chan = 0 
)
void coDoGeometry::setGeometry ( int  gtype,
const coDistributedObject geo 
)
void covise::coDoGeometry::setNormalAttributes ( int  nattr)
inline
void coDoGeometry::setNormals ( int  nattr,
const coDistributedObject n 
)
void coDoGeometry::setTexture ( int  tattr,
const coDistributedObject t 
)
void covise::coDoGeometry::setTextureAttributes ( int  nattr)
inline
void coDoGeometry::setVertexAttribute ( int  vattr,
const coDistributedObject v 
)
void covise::coDoGeometry::setVertexAttributeAttributes ( int  vattr)
inline
coDistributedObject * coDoGeometry::virtualCtor ( coShmArray arr)
staticprivate

Friends And Related Function Documentation

friend class coDoInitializer
friend

Member Data Documentation

coIntShm covise::coDoGeometry::color_attr
private
const coDistributedObject* covise::coDoGeometry::colorMap[NumColorMaps]
private
coIntShm covise::coDoGeometry::colorMap_attr
private
const coDistributedObject* covise::coDoGeometry::colors[NumChannels]
private
const coDistributedObject* covise::coDoGeometry::geometry
private
coIntShm covise::coDoGeometry::geometry_type
private
coIntShm covise::coDoGeometry::normal_attr
private
const coDistributedObject* covise::coDoGeometry::normals
private
const coDistributedObject* covise::coDoGeometry::texture
private
coIntShm covise::coDoGeometry::texture_attr
private
const coDistributedObject* covise::coDoGeometry::vertexAttribute
private
coIntShm covise::coDoGeometry::vertexAttribute_attr
private

The documentation for this class was generated from the following files: