Base class for objects that may display something.
More...
#include </home/werner/origo/vish/ocean/Anemonia/VRenderContext.hpp>
List of all members.
Classes
Public Types
Public Member Functions
-
double aspect () const
- Return the aspect ratio of the current viewer window, i.e. width / height. Returns 1.0 if no output medium is defined.
-
bool BeginNewObjectRender ()
- int BeginNewRender (int MaxRenderObjects)
-
int BeginNewSubObjectRender ()
-
virtual bool isCancelled () const
- Virtual callback function that tells if this render context is supposed to be cancelled (stopped).
-
bool isPickMode () const
-
bool isSelected () const
- Specifies if the rendered object is currently selected by the user. This is a fast inline function which can be called frequently without performance impact by a rendering routine.
-
bool isSubSelected () const
- Specifies if the subgroup of the rendered object is currently selected by the user.
- virtual int render (const ObjectSelection &RenderObjects, double &RenderTime, int MinLevel=RENDER_FIRST, int MaxLevel=RENDER_LAST)=0
- Implementation-specific function to traverse all objects that ought to be rendered.
-
void setCurrentPick (const PickId &P)
-
void setRenderObjectNotifier (RenderObjectNotifier *UseThisRenderObjectNotifier)
-
void setSelectedFlag (const WeakPtr< VManagedObject > &V)
-
virtual RefPtr< TouchList > touch (const ObjectSelection &RenderObjects, int X, int Y, int DX=1, int DY=1, int MinLevel=DEFAULT_OBJECT-1, int MaxLevel=OVERLAY_OBJECT-1)=0
-
virtual Geometry viewport () const =0
- Return the viewport properties of the render context, as set by glViewport();.
-
VRenderContext (const SeagrassWeakPtr_t &theSeagrass, const RefPtr< VRenderPrecision > &Hints)
- Constructor, provide render hints.
-
virtual ~VRenderContext ()
- Constructor.
Public Attributes
-
VCamera CameraSettings
- Properties of the camera.
-
Size CurrentTileID
-
RefPtr< VRenderPrecision > Hints
- Additional information on how rendering should happen.
-
Size Image
- For tiled rendering: Setup the Image size (in pixels) the size of one Tile (in pixels) and define the CurrentTileID (in integers telling the current ID of the tile to be rendered).
-
PixelZoom myPixelZoom
-
struct {
- } pick
- Local help structure used for picking.
-
int priority
-
Size Tile
Detailed Description
Member Function Documentation
int Wizt::VRenderContext::BeginNewRender |
( |
int |
MaxRenderObjects | ) |
[inline] |
- Returns:
- The shift factor for the number of objects, i.e. retval = int(log2(MaxRenderObjects), such that MaxRenderObjects < 1<<retval.
virtual int Wizt::VRenderContext::render |
( |
const ObjectSelection & |
RenderObjects, |
|
|
double & |
RenderTime, |
|
|
int |
MinLevel = RENDER_FIRST , |
|
|
int |
MaxLevel = RENDER_LAST |
|
) |
| [pure virtual] |
Implementation-specific function to traverse all objects that ought to be rendered.
- Parameters:
-
RenderTime | The accumulative time (in seconds) used for rendering. |
- Returns:
- The number of objects that had been actually rendered
Implemented in Wizt::VGLRenderContext, and Wizt::WebGLRenderContext.
The documentation for this class was generated from the following files:
- ocean/Anemonia/VRenderContext.hpp
- ocean/Anemonia/VRenderContext.cpp