Public Member Functions | |
impl_LV3D_Array (LV3D_Array *array_) | |
~impl_LV3D_Array () | |
void | add (CkViewable *v_) |
void | remove (CkViewable *v_) |
void | newClient (int clientID) |
void | viewpoint (const LV3D_ViewpointMsg *m) |
This request is broadcast every time a client viewpoint changes. | |
void | render (LV3D_RenderMsg *m) |
This method is used to prioritize rendering. | |
void | LV3D_FlatRender (liveVizRequestMsg *m, LV3D_Array *arr) |
Private Member Functions | |
void | flush (void) |
render position for last view | |
void | renderUpdate (const LV3D_ViewpointMsg *m) |
CkViewableID | makeViewableID (int vi) |
void | status (const char *where) |
Private Attributes | |
LV3D_Array * | array |
CkViewable * | viewable |
CkView * | view |
Last-rendered view for this viewable. | |
CkVector3d | lastCamera |
bool | renderRequested |
CkViewpoint | renderViewpoint |
int | renderFrameID |
Definition at line 29 of file lv3d1_server.C.
impl_LV3D_Array::impl_LV3D_Array | ( | LV3D_Array * | array_ | ) | [inline] |
impl_LV3D_Array::~impl_LV3D_Array | ( | ) | [inline] |
Definition at line 72 of file lv3d1_server.C.
References flush().
void impl_LV3D_Array::flush | ( | void | ) | [inline, private] |
render position for last view
Definition at line 40 of file lv3d1_server.C.
References renderRequested, and view.
Referenced by newClient(), remove(), render(), and ~impl_LV3D_Array().
void impl_LV3D_Array::renderUpdate | ( | const LV3D_ViewpointMsg * | m | ) | [inline, private] |
Definition at line 48 of file lv3d1_server.C.
References LV3D_ViewpointMsg::frameID, renderFrameID, renderViewpoint, and LV3D_ViewpointMsg::viewpoint.
Referenced by viewpoint().
CkViewableID impl_LV3D_Array::makeViewableID | ( | int | vi | ) | [inline, private] |
Definition at line 53 of file lv3d1_server.C.
References array, and CkViewableID::id.
Referenced by render().
void impl_LV3D_Array::status | ( | const char * | where | ) | [inline, private] |
Definition at line 63 of file lv3d1_server.C.
Referenced by render(), and viewpoint().
void impl_LV3D_Array::add | ( | CkViewable * | v_ | ) | [inline] |
Definition at line 77 of file lv3d1_server.C.
References viewable.
Referenced by LV3D_Array::addViewable().
void impl_LV3D_Array::remove | ( | CkViewable * | v_ | ) | [inline] |
Definition at line 81 of file lv3d1_server.C.
References flush(), and viewable.
Referenced by LV3D_Array::removeViewable().
void impl_LV3D_Array::newClient | ( | int | clientID | ) | [inline] |
Definition at line 88 of file lv3d1_server.C.
References flush().
Referenced by LV3D_Array::LV3D_NewClient().
void impl_LV3D_Array::viewpoint | ( | const LV3D_ViewpointMsg * | m | ) | [inline] |
This request is broadcast every time a client viewpoint changes.
Internally, it asks the stored CkViewables if they should redraw, and if so, queues up a LV3D_RenderMsg.
Definition at line 98 of file lv3d1_server.C.
References array, LV3D_ViewpointMsg::clientID, LV3D_ViewpointMsg::frameID, CkViewable::getSize(), LV3D_Array::LV3D_Render(), LV3D_RenderMsg::new_(), renderRequested, renderUpdate(), renderViewpoint, CkViewable::shouldRender(), status(), view, viewable, and LV3D_ViewpointMsg::viewpoint.
Referenced by LV3D_Array::LV3D_Viewpoint().
void impl_LV3D_Array::render | ( | LV3D_RenderMsg * | m | ) | [inline] |
This method is used to prioritize rendering.
Definition at line 121 of file lv3d1_server.C.
References LV3D_RenderMsg::clientID, LV3D_RenderMsg::delete_(), flush(), CkViewable::getSize(), CkView::id, LV3D0_Deposit(), LV3D_build_priority(), makeViewableID(), CkView::prio, renderFrameID, CkViewable::renderView(), renderViewpoint, status(), view, and viewable.
Referenced by LV3D_Array::LV3D_Render().
void impl_LV3D_Array::LV3D_FlatRender | ( | liveVizRequestMsg * | m, | |
LV3D_Array * | arr | |||
) |
Definition at line 216 of file lv3d1_server.C.
References PUP::b, CkQuadView::corners, dest, CkQuadView::getImage(), h, int, liveVizDeposit(), liveVizRequestUnpack(), op, CkViewpoint::project(), r, CkViewable::renderView(), src, viewable, PUP::w, CkVector3dT< real >::x, x, and CkVector3dT< real >::y.
Referenced by LV3D_Array::LV3D_FlatRender().
LV3D_Array* impl_LV3D_Array::array [private] |
CkViewable* impl_LV3D_Array::viewable [private] |
Definition at line 32 of file lv3d1_server.C.
Referenced by add(), impl_LV3D_Array(), LV3D_FlatRender(), remove(), render(), and viewpoint().
CkView* impl_LV3D_Array::view [private] |
Last-rendered view for this viewable.
Definition at line 37 of file lv3d1_server.C.
Referenced by flush(), impl_LV3D_Array(), render(), and viewpoint().
CkVector3d impl_LV3D_Array::lastCamera [private] |
Definition at line 38 of file lv3d1_server.C.
bool impl_LV3D_Array::renderRequested [private] |
Definition at line 45 of file lv3d1_server.C.
Referenced by flush(), impl_LV3D_Array(), and viewpoint().
CkViewpoint impl_LV3D_Array::renderViewpoint [private] |
Definition at line 46 of file lv3d1_server.C.
Referenced by render(), renderUpdate(), and viewpoint().
int impl_LV3D_Array::renderFrameID [private] |