cherish
Public Member Functions | List of all members
fur::AddCanvasCommand Class Reference

QUndoCommand that performs addition of a canvas to entity::UserScene. More...

#include <AddEntityCommand.h>

Inheritance diagram for fur::AddCanvasCommand:

Public Member Functions

 AddCanvasCommand (entity::UserScene *scene, const osg::Matrix &R, const osg::Matrix &T, const std::string &name, QUndoCommand *parent=0)
 
 AddCanvasCommand (entity::UserScene *scene, const entity::Canvas &copy, QUndoCommand *parent=0)
 
 AddCanvasCommand (entity::UserScene *scene, const osg::Vec3f &normal, const osg::Vec3f &center, const std::string &name, QUndoCommand *parent=0)
 
void undo () Q_DECL_OVERRIDE
 
void redo () Q_DECL_OVERRIDE
 

Detailed Description

QUndoCommand that performs addition of a canvas to entity::UserScene.

Constructor & Destructor Documentation

§ AddCanvasCommand() [1/3]

fur::AddCanvasCommand::AddCanvasCommand ( entity::UserScene scene,
const osg::Matrix &  R,
const osg::Matrix &  T,
const std::string &  name,
QUndoCommand *  parent = 0 
)
Parameters
sceneis the scene graph to add to,
Ris the rotation matrix of the canvas,
Tis translation matrix of the canvas,
nameis the Canvas name,
parentis normally 0.

§ AddCanvasCommand() [2/3]

fur::AddCanvasCommand::AddCanvasCommand ( entity::UserScene scene,
const entity::Canvas copy,
QUndoCommand *  parent = 0 
)
Parameters
sceneis the scene graph to add to,
copyis Canvas to copy from,
parentis normally 0.

§ AddCanvasCommand() [3/3]

fur::AddCanvasCommand::AddCanvasCommand ( entity::UserScene scene,
const osg::Vec3f &  normal,
const osg::Vec3f &  center,
const std::string &  name,
QUndoCommand *  parent = 0 
)
Parameters
sceneis the scene graph to add to,
normalis a 3D normal of the canvas to create,
centeris the 3D center point of canvas to create,
nameis the canvas name,
parentis normally 0.

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