COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coDoTexture.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef CO_DO_TEXTURE_H
9 #define CO_DO_TEXTURE_H
10 
11 /***************************************************************************
12  ** **
13  ** Description: Class-Declaration of a new COVISE-OBJECT **
14  ** for handling Texture-Data **
15  ** **
16  ** **
17  ** **
18  ** (C) 1997 **
19  ** Paul Benoelken **
20  ** Computer Center University of Stuttgart **
21  ** Allmandring 30 **
22  ** 70550 Stuttgart **
23  ** Author: Paul Benoelken **
24  ** **
25  ** Date: 31.07.97 V1.0 **
26  ****************************************************************************/
27 
28 #include "coDistributedObject.h"
29 namespace covise
30 {
31 
32 class coDoPixelImage;
33 
35 {
36  friend class coDoInitializer;
37  static coDistributedObject *virtualCtor(coShmArray *arr);
38 
39 private:
50 
51 protected:
52  int rebuildFromShm();
53  int getObjInfo(int, coDoInfo **) const;
54  coDoTexture *cloneObject(const coObjInfo &newinfo) const;
55 
56 public:
57  coDoTexture(const coObjInfo &info);
58  coDoTexture(const coObjInfo &info, coShmArray *arr);
59  coDoTexture(const coObjInfo &info,
60  coDoPixelImage *image, /* texture buffer */
61  int b, /* border */
62  int c, /* components */
63  int l, /* level */
64  int nv, /* number of vertices */
65  int *vi, /* vertex-indices */
66  int nc, /* number of ccordinates */
67  float **coords); /* x/y coordinates */
68 
69  coDoPixelImage *getBuffer() const;
70  int getBorder() const;
71  int getComponents() const;
72  int getLevel() const;
73  int getWidth() const;
74  int getHeight() const;
75  int getNumVertices() const;
76  int *getVertices() const;
77  int getNumCoordinates() const;
78  float **getCoordinates() const;
79 };
80 }
81 #endif
GLuint coords
Definition: khronos-glext.h:8086
coFloatShmArray y_coordinates
Definition: coDoTexture.h:49
Definition: covise_shm.h:481
GLboolean GLboolean GLboolean b
Definition: khronos-glext.h:6895
coDoPixelImage * buffer
Definition: coDoTexture.h:40
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: khronos-glext.h:6356
Definition: covise_statics.cpp:54
coIntShm num_coordinates
Definition: coDoTexture.h:47
coFloatShmArray x_coordinates
Definition: coDoTexture.h:48
Definition: coObjID.h:230
Definition: coDoTexture.h:34
Definition: coDistributedObject.h:266
coIntShm level
Definition: coDoTexture.h:43
const GLubyte * c
Definition: khronos-glext.h:9864
coIntShmArray vertices
Definition: coDoTexture.h:46
#define DOEXPORT
Definition: coExport.h:307
coIntShm components
Definition: coDoTexture.h:42
coIntShm height
Definition: coDoTexture.h:45
coIntShm width
Definition: coDoTexture.h:44
Definition: coDistributedObject.h:295
Definition: coDoPixelImage.h:34
coIntShm border
Definition: coDoTexture.h:41