[]Jimmy's World.org
I care not for your petty politics.
[]
Jimmy's World Games
Not a Member? - Login or Create an Account
[] Monday the 5th of January 2009 @ 10:59pm
News Journal Creative Writing Projects Your JW About

LibN2L-4 Library Code Reference

Classes
Compounds
Files
Members
Method Index
Full Reference

n2l::cGuiModelView Class Reference

A gui element which will draw at the current mouse location to act as a mouse point`er. More...

#include <cGuiModelView.h>

Inheritance diagram for n2l::cGuiModelView:

Inheritance graph
[legend]
Collaboration diagram for n2l::cGuiModelView:

Collaboration graph
[legend]
List of all members.

Public Types

Public Member Functions

Static Public Member Functions

Protected Member Functions


Detailed Description

A gui element which will draw at the current mouse location to act as a mouse point`er.

Definition at line 48 of file cGuiModelView.h.


Member Enumeration Documentation

enum n2l::cGuiModelView::tCameraMode
 

Enumerator:
CameraMode_Auto 
CameraMode_Manual 
CameraMode_NumCameraModes 

Definition at line 51 of file cGuiModelView.h.


Constructor & Destructor Documentation

n2l::cGuiModelView::cGuiModelView  ) 
 

Definition at line 42 of file cGuiModelView.cpp.

Referenced by loadNew().

n2l::cGuiModelView::cGuiModelView const cVfsNodeInterface iNode  ) 
 

Definition at line 56 of file cGuiModelView.cpp.

References load().

n2l::cGuiModelView::cGuiModelView const cDynVar iDefinition  ) 
 

Definition at line 64 of file cGuiModelView.cpp.

References load().

n2l::cGuiModelView::~cGuiModelView  )  [virtual]
 

Definition at line 49 of file cGuiModelView.cpp.


Member Function Documentation

const cAutoPtr< cGuiElement > n2l::cGuiModelView::clone  )  const [virtual]
 

Method to return a copy of this element.

Useful as a way to get a non-const, bindable and canvas-able instance of an element from the resource loader.

Note:
Bindings, name and canvas parent information are not cloned.

Implements n2l::cGuiElement.

Definition at line 284 of file cGuiModelView.cpp.

References cloneInto().

void n2l::cGuiModelView::cloneInto const cAutoPtr< cGuiModelView > &  i_ioElement  )  const [protected, virtual]
 

Definition at line 292 of file cGuiModelView.cpp.

References n2l::cGuiElement::cGuiFill, and n2l::cGuiElement::cloneInto().

Referenced by clone().

void n2l::cGuiModelView::draw  )  const [virtual]
 

Draw ourselves on the screen.

Note:
This method does not set the projection matrix.

Reimplemented from n2l::cGuiElement.

Definition at line 238 of file cGuiModelView.cpp.

References n2l::cAutoPtr< TPtr >::isSet(), n2l::cGuiElement::pos(), and n2l::cGuiElement::size().

void n2l::cGuiModelView::load const cDynVar iDefinition  )  [virtual]
 

Load this elements properties from the provided definition.

Reimplemented from n2l::cGuiElement.

Definition at line 79 of file cGuiModelView.cpp.

References n2l::cGuiElement::cGuiFill, n2l::cDynVar::isArray(), n2l::cDynVar::keyExists(), n2l::cGuiElement::load(), and mesh().

void n2l::cGuiModelView::load const cVfsNodeInterface iNode  )  [virtual]
 

Load this elements properties from the provided VFS Node.

Reimplemented from n2l::cGuiElement.

Definition at line 71 of file cGuiModelView.cpp.

References n2l::cGuiElement::validateAndDecode().

Referenced by cGuiModelView().

const cAutoPtr< cGuiElement > n2l::cGuiModelView::loadNew const cDynVar iDef  )  [static]
 

Reimplemented from n2l::cGuiElement.

Definition at line 331 of file cGuiModelView.cpp.

References cGuiModelView().

Referenced by n2l::n2lGuiStartup().

void n2l::cGuiModelView::mesh const cAutoPtr< const cRVisualTriMesh > &  iMesh  )  [virtual]
 

Definition at line 111 of file cGuiModelView.cpp.

References CameraMode_Auto, n2l::cAutoPtr< TPtr >::isSet(), n2l::cAutoPtr< TPtr >::set(), n2l::cVector3< TComponent, TComponentDiff, TMagnitude >::y(), and n2l::cVector3< TComponent, TComponentDiff, TMagnitude >::z().

Referenced by load(), and model().

virtual const tMatrix44f& n2l::cGuiModelView::meshTrans  )  const [inline, virtual]
 

Definition at line 82 of file cGuiModelView.h.

void n2l::cGuiModelView::meshTrans const tMatrix44f iTrans  )  [virtual]
 

Definition at line 158 of file cGuiModelView.cpp.

Referenced by n2l::cGuiSEModelOrbit::actOn().

virtual void n2l::cGuiModelView::model const cAutoPtr< const cRVisualTriMesh > &  iMesh  )  [inline, virtual]
 

Definition at line 75 of file cGuiModelView.h.

References mesh().

virtual const cAutoPtr<const cRVisualTriMesh>& n2l::cGuiModelView::model  )  const [inline, virtual]
 

Definition at line 70 of file cGuiModelView.h.

const cDynVar n2l::cGuiModelView::prop const tString iName,
const tString iInnerKey = ""
const [virtual]
 

Reimplemented from n2l::cGuiElement.

Definition at line 271 of file cGuiModelView.cpp.

References n2l::cString::empty(), and n2l::cGuiElement::prop().

void n2l::cGuiModelView::prop const tString iName,
const cDynVar iVal,
const tString iInnerKey = ""
[virtual]
 

Set a property by name.

Which properites are supported and the format for each set is renegotiated as required.

Note:
Each derived class needs to reimplement this method to support its own properties. Parent classes should be called AFTER the derived class checks, not before which is opposite to most similar classes.

Reimplemented from n2l::cGuiElement.

Definition at line 252 of file cGuiModelView.cpp.

References n2l::cGuiElement::cGuiFill, n2l::cString::empty(), n2l::cDynVar::isArray(), and n2l::cGuiElement::prop().

void n2l::cGuiModelView::texture const cAutoPtr< const cGLTexture > &  iTexture  )  [virtual]
 

Definition at line 150 of file cGuiModelView.cpp.

void n2l::cGuiModelView::update const tUint  iTimePassed  )  [virtual]
 

Inform the canvas how much time has passed since its last update, usually this is called once per frame.

Reimplemented from n2l::cGuiElement.

Definition at line 165 of file cGuiModelView.cpp.

References n2l::cDisplayCommonImp::currentDisplay(), n2l::cMatrix44< TComponent >::data(), n2l::cAutoPtr< TPtr >::isSet(), n2l::R_Normal, and n2l::cGuiElement::update().


The documentation for this class was generated from the following files:
©2009 Aaron Cameron
Benchmarks