wxArt2D
Public Member Functions | Protected Attributes | Friends | List of all members

Used by a2dDrawingPart to decide what layers are to be rendered. More...

#include <drawer.h>

Public Member Functions

 a2dLayerView ()
 constructor
 
bool GetVisible ()
 is the layer visible
 
void SetVisible (bool status)
 set layer visible
 
bool GetAvailable ()
 are the objects on this layer
 
void SetAvailable (bool status)
 set layer available (will be rendered)
 
bool GetCheck ()
 check this layer?
 
void SetCheck (bool status)
 set the layer to be checked in idle time.
 
bool DoRenderLayer ()
 should this layer be rendered
 
wxUint32 GetObjectCount ()
 get currently counted number of objects on this layer inside a document.
 
void SetObjectCount (wxUint32 numberOfObjects)
 set currently counted number of objects on this layer inside a document.
 
wxUint32 GetPreviousObjectCount ()
 get currently counted number of objects on this layer inside a document.
 
void SetPreviousObjectCount (wxUint32 numberOfObjects)
 set currently counted number of objects on this layer inside a document.
 
void IncrementObjectCount ()
 increment currently counted number of objects on this layer inside a document.
 
void DecrementObjectCount ()
 decrement currently counted number of objects on this layer inside a document.
 

Protected Attributes

wxUint32 m_canvasObjectCount
 
wxUint32 m_canvasPreviousObjectCount
 
bool m_layervisible
 is the layer visible
 
bool m_layeravailable
 is the layer filled with primitives
 
bool m_check
 if true layer need to be check again document for availability.
 

Friends

class a2dSmrtPtrBase
 

Detailed Description

Used by a2dDrawingPart to decide what layers are to be rendered.

The a2dDrawing is checked via a2dCanvasObject::Addpending() etc. which layers contain objects. The array containing this information is stored seperate for each a2dDrawingPart. This is because each view can show different parts of a document, and one part can contain more layers then the other. This information is used to skip rendering layers which do not contain objects, or which are set invisible.

Definition at line 303 of file drawer.h.

Member Data Documentation

wxUint32 a2dLayerView::m_canvasObjectCount
mutableprotected

Gives the number of object on this layer in a document. Only accurate after a SetAvailable

Definition at line 366 of file drawer.h.


The documentation for this class was generated from the following file:
a2dLayerView Class Reference -- Sun Oct 12 2014 17:04:41 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation