In file SM2/SM2Viewer.h:

namespace yav class SM2View : public SurfaceSliceable, public Owner<SM2>

a class allowing to display a 2-simplex mesh in a slice camera

Inheritance:


Public Classes

enum
the different type of interaction when the left mouse button is pressed, moved and released

Public Methods

virtual void recompute (SliceCamera *cam)
slice changed callback
virtual void buttonPressedCallback (SliceCamera *slicecam, int mx, int my)
callback called when a button is pressed in the slicecamera
virtual void buttonMotionCallback (SliceCamera *slicecam, int mx, int my)
callback called when a button is moved in the slicecamera
virtual void buttonReleasedCallback (SliceCamera *slicecam, int mx, int my)
callback called when a button is released in the slicecamera
virtual void redraw (Camera2D *cam)
default redraw function for sliceable objects

Public

constructor
SM2View (Scene2D *_scene, SM2 *_mesh)
build a SM2View from a 2-simplex mesh and a 2D scene
destructor
virtual ~SM2View ()
destroys a SM2 View

Protected Fields

Pointer <SM2> mesh
pointer on the 2-simplex mesh

Protected Methods

virtual void dying (const Pointer<SM2>& obj)
a 2-simplex mesh owned by this object is being destroyed

Documentation

a class allowing to display a 2-simplex mesh in a slice camera
enum
the different type of interaction when the left mouse button is pressed, moved and released

Pointer <SM2> mesh
pointer on the 2-simplex mesh

constructor

SM2View(Scene2D *_scene, SM2 *_mesh)
build a SM2View from a 2-simplex mesh and a 2D scene
Parameters:
scene - a 2D scene
mesh - a 2-simplex mesh

destructor

virtual ~SM2View()
destroys a SM2 View

virtual void recompute(SliceCamera *cam)
slice changed callback
Parameters:
cam - camera whose slice changed

virtual void buttonPressedCallback(SliceCamera *slicecam, int mx, int my)
callback called when a button is pressed in the slicecamera
Parameters:
slicecam - the slicecam where occured the click button
mx - first coordinate of the pixel clicked
my - second coordinate of the pixel clicked

virtual void buttonMotionCallback(SliceCamera *slicecam, int mx, int my)
callback called when a button is moved in the slicecamera
Parameters:
slicecam - the slicecam where is located the mouse
mx - first coordinate of the mouse position
my - second coordinate of the mouse position

virtual void buttonReleasedCallback(SliceCamera *slicecam, int mx, int my)
callback called when a button is released in the slicecamera
Parameters:
slicecam - the slicecam where is located the mouse
mx - first coordinate of the mouse position
my - second coordinate of the mouse position

virtual void redraw(Camera2D *cam)
default redraw function for sliceable objects
Parameters:
cam - camera to redraw

virtual void dying(const Pointer<SM2>& obj)
a 2-simplex mesh owned by this object is being destroyed
Parameters:
obj - element before destruction


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de