COVISE Core
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"
29namespace covise
30{
31
32class coDoPixelImage;
33
35{
36 friend class coDoInitializer;
37 static coDistributedObject *virtualCtor(coShmArray *arr);
38
39private:
50
51protected:
52 int rebuildFromShm();
53 int getObjInfo(int, coDoInfo **) const;
54 coDoTexture *cloneObject(const coObjInfo &newinfo) const;
55
56public:
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
#define DOEXPORT
Definition: coExport.h:331
const GLubyte * c
Definition: khronos-glext.h:9864
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: khronos-glext.h:6356
GLuint coords
Definition: khronos-glext.h:8086
GLboolean GLboolean GLboolean b
Definition: khronos-glext.h:6895
list of all chemical elements
Definition: coConfig.h:27
Definition: coObjID.h:231
Definition: covise_shm.h:482
Definition: coDistributedObject.h:267
Definition: coDistributedObject.h:296
Definition: coDoPixelImage.h:35
Definition: coDoTexture.h:35
coIntShm level
Definition: coDoTexture.h:43
coIntShmArray vertices
Definition: coDoTexture.h:46
coFloatShmArray y_coordinates
Definition: coDoTexture.h:49
coDoPixelImage * buffer
Definition: coDoTexture.h:40
coIntShm height
Definition: coDoTexture.h:45
coIntShm width
Definition: coDoTexture.h:44
int getWidth() const
coIntShm num_coordinates
Definition: coDoTexture.h:47
coFloatShmArray x_coordinates
Definition: coDoTexture.h:48
coIntShm border
Definition: coDoTexture.h:41
int getHeight() const
coIntShm components
Definition: coDoTexture.h:42
Definition: covise_statics.cpp:55