GCOP  1.0
Public Member Functions | Protected Attributes | Friends
gcop::View Class Reference

#include <view.h>

Inheritance diagram for gcop::View:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 View (const char *name=0)
virtual ~View ()
virtual void Render ()
virtual bool RenderFrame (int i=0)
void Lock ()
void Unlock ()

Protected Attributes

char name [256]
 name
int id
 id
pthread_mutex_t mut
 synchronization

Friends

class Viewer

Detailed Description

Basic view class that all views should subclass. Render() should provide the rendering. Lock() and Unlock() should be used when any data used in Render() is being updated.

Author: Marin Kobilarov -- Copyright (C) 2005


Constructor & Destructor Documentation

View::View ( const char *  name = 0)

Create a view. All subclasses should call the constructor

Parameters:
nameoptional name

References mut, and s_view_id.

View::~View ( ) [virtual]

Destroy view

References mut.


Member Function Documentation

void View::Lock ( )

Lock a view. This is done when updating data inside this object. While a view is locked Render() is not called

References mut.

Referenced by gcop::Viewer::RenderViews().

void View::Render ( ) [virtual]
bool View::RenderFrame ( int  i = 0) [virtual]
void View::Unlock ( )

Unlock the view and continue display

References mut.

Referenced by gcop::Viewer::RenderViews().


Friends And Related Function Documentation

friend class Viewer [friend]

Member Data Documentation

int gcop::View::id [protected]
pthread_mutex_t gcop::View::mut [protected]

synchronization

Referenced by Lock(), Unlock(), View(), and ~View().

char gcop::View::name[256] [protected]

name

The view can optionally specify

Referenced by RenderFrame().


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