PPL Logo

CkFixedViewable Class Reference

This trivial viewable always shows a fixed quadview, regardless of the viewpoint--that is, it's just a single, fixed-texture polygon. More...

#include <ckviewable.h>

Inheritance diagram for CkFixedViewable:

Inheritance graph
[legend]
Collaboration diagram for CkFixedViewable:

Collaboration graph
[legend]

Public Member Functions

 CkFixedViewable (CkView *v_)
 Create a new CkFixedViewable showing this texture.
 ~CkFixedViewable ()
virtual bool shouldRender (const CkViewpoint &univ2screen, const CkView &oldView)
 Return true if this object needs to be redrawn, false if oldView is acceptable from the new viewpoint.
virtual CkViewrenderView (const CkViewpoint &univ2screen)
 Draw this object from this point of view, and return the resulting image (or NULL if none is appropriate).

Private Attributes

CkViewv

Detailed Description

This trivial viewable always shows a fixed quadview, regardless of the viewpoint--that is, it's just a single, fixed-texture polygon.

Definition at line 278 of file ckviewable.h.


Constructor & Destructor Documentation

CkFixedViewable::CkFixedViewable ( CkView v_  )  [inline]

Create a new CkFixedViewable showing this texture.

Definition at line 284 of file ckviewable.h.

References v.

CkFixedViewable::~CkFixedViewable (  )  [inline]

Definition at line 285 of file ckviewable.h.

References v.


Member Function Documentation

virtual bool CkFixedViewable::shouldRender ( const CkViewpoint univ2screen,
const CkView oldView 
) [inline, virtual]

Return true if this object needs to be redrawn, false if oldView is acceptable from the new viewpoint.

oldView is always a CkView returned from a previous call to "render".

Implements CkViewable.

Definition at line 288 of file ckviewable.h.

virtual CkView* CkFixedViewable::renderView ( const CkViewpoint univ2screen  )  [inline, virtual]

Draw this object from this point of view, and return the resulting image (or NULL if none is appropriate).

The output CkView will be unref()'d exactly once after each call to render.

Implements CkViewable.

Definition at line 293 of file ckviewable.h.

References v.


Field Documentation

Definition at line 279 of file ckviewable.h.

Referenced by CkFixedViewable(), renderView(), and ~CkFixedViewable().


The documentation for this class was generated from the following file:

Generated on Mon Sep 21 08:19:58 2020 for Charm++ by  doxygen 1.5.5