#include <ckviewable.h>
Public Types | |
enum | { maxCorners = 8 } |
These are the XYZ universe locations of the vertices of our texture image. More... | |
Public Member Functions | |
virtual void | pup (PUP::er &p) |
PUP this CkView and its image or geometry data. | |
PUPable_decl (CkQuadView) | |
virtual | ~CkQuadView () |
CkQuadView (int w, int h, int n_colors) | |
Create a new quad view to display a new texture. | |
CkAllocImage & | getImage (void) |
const CkAllocImage & | getImage (void) const |
CkQuadView (CkMigrateMessage *m) | |
Migration constructor-- prepare for pup. | |
const oglLilTex * | getTexture (void) const |
virtual void | render (double alpha, CkView *old) |
Render our image to the current OpenGL context. | |
Data Fields | |
int | nCorners |
CkVector3d | corners [maxCorners] |
CkVector3d | texCoord [maxCorners] |
Private Member Functions | |
void | render (void) |
Private Attributes | |
CkAllocImage | s_tex |
Our texture image-- only valid on server side. | |
CkImageCompressor | x_tex |
oglLilTex * | c_tex |
You specify the texture, corners, and draw style.
Definition at line 221 of file ckviewable.h.
anonymous enum |
These are the XYZ universe locations of the vertices of our texture image.
These go in a fan, like: corners[0]==image.getPixel(0,0) corners[1]==image.getPixel(w-1,0) corners[2]==image.getPixel(w-1,h-1) corners[3]==image.getPixel(0,h-1) Subclasses MUST set these fields on the server.
Definition at line 231 of file ckviewable.h.
virtual CkQuadView::~CkQuadView | ( | ) | [virtual] |
Create a new quad view to display a new texture.
n_colors should be 1 (greyscale, luminance), 3 (rgb, no alpha) or 4 (premultiplied rgba).
Be sure to set the "corners" and "id" fields after making this call. (SERVER ONLY)
CkQuadView::CkQuadView | ( | CkMigrateMessage * | m | ) |
Migration constructor-- prepare for pup.
(CLIENT ONLY)
virtual void CkQuadView::pup | ( | PUP::er & | p | ) | [virtual] |
CkQuadView::PUPable_decl | ( | CkQuadView | ) |
CkAllocImage& CkQuadView::getImage | ( | void | ) | [inline] |
Definition at line 257 of file ckviewable.h.
References s_tex.
Referenced by impl_LV3D_Array::LV3D_FlatRender().
const CkAllocImage& CkQuadView::getImage | ( | void | ) | const [inline] |
void CkQuadView::render | ( | void | ) | [private] |
const oglLilTex* CkQuadView::getTexture | ( | void | ) | const [inline] |
virtual void CkQuadView::render | ( | double | alpha, | |
CkView * | old | |||
) | [virtual] |
Render our image to the current OpenGL context.
Use "alpha" fraction of your own pixels; "1-alpha" fraction of the "old" pixels. "old" may be NULL.
(CLIENT ONLY) So the server can link without OpenGL, all OpenGL calls made by this routine should be protected by an ifdef CMK_LIVEVIZ3D_CLIENT
Implements CkView.
Definition at line 232 of file ckviewable.h.
CkVector3d CkQuadView::corners[maxCorners] |
CkVector3d CkQuadView::texCoord[maxCorners] |
Definition at line 234 of file ckviewable.h.
CkAllocImage CkQuadView::s_tex [private] |
Our texture image-- only valid on server side.
Definition at line 244 of file ckviewable.h.
Referenced by getImage().
CkImageCompressor CkQuadView::x_tex [private] |
Definition at line 245 of file ckviewable.h.
oglLilTex* CkQuadView::c_tex [private] |