#include <ckviewable.h>
Public Member Functions | |
const CkViewableID & | getViewable (void) const |
PUPable_abstract (CkView) | |
CkView subclasses are PUP::able's. | |
virtual void | pup (PUP::er &p) |
PUP this CkView and its image or geometry data. | |
virtual void | render (double alpha, CkView *old)=0 |
Render our image to the current OpenGL context. | |
Data Fields | |
CkViewableID | id |
This is the viewable we describe. | |
unsigned int | prio |
This is our approximate network priority. | |
int | pixels |
The number of pixels we represent. |
Subclasses contain some texture representation (e.g., one RGBA texture). This class is sent from the server, which generates CkViews, to the client, which displays them. CkViews travel around in the parallel machine inside liveViz3dViewMsg objects.
CkView's are reference counted-- use ref() and unref() to save copying, and always allocate them with a plain "new".
Definition at line 96 of file ckviewable.h.
const CkViewableID& CkView::getViewable | ( | void | ) | const [inline] |
CkView::PUPable_abstract | ( | CkView | ) |
virtual void CkView::pup | ( | PUP::er & | p | ) | [virtual] |
PUP this CkView and its image or geometry data.
(CLIENT AND SERVER).
Reimplemented from PUP::able.
Reimplemented in CkQuadView.
virtual void CkView::render | ( | double | alpha, | |
CkView * | old | |||
) | [pure 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
Implemented in CkQuadView.
Referenced by LV3D_Universe_Table::render().
This is the viewable we describe.
This field is set by LiveViz3dArray, not CkViewable.
Definition at line 100 of file ckviewable.h.
Referenced by getViewable(), LV3D0_ViewMsg::new_(), and impl_LV3D_Array::render().
unsigned int CkView::prio |
This is our approximate network priority.
Lower numbers mean higher priority. Prio==0 is highest. This field is set by LiveViz3dArray, not CkViewable.
Definition at line 106 of file ckviewable.h.
Referenced by LV3D0_ViewMsg::new_(), and impl_LV3D_Array::render().
The number of pixels we represent.
Definition at line 109 of file ckviewable.h.
Referenced by LV3D0_Deposit(), and LV3D0_ViewMsg::new_().