OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
CSVRender::Pathgrid Class Reference

#include <pathgrid.hpp>

Collaboration diagram for CSVRender::Pathgrid:

Public Types

typedef std::vector< unsigned
short > 
NodeList
 

Public Member Functions

 Pathgrid (CSMWorld::Data &data, osg::Group *parent, const std::string &pathgridId, const CSMWorld::CellCoordinates &coordinates)
 
 ~Pathgrid ()
 
const CSMWorld::CellCoordinatesgetCoordinates () const
 
const std::string & getId () const
 
bool isSelected () const
 
const NodeListgetSelected () const
 
void selectAll ()
 
void toggleSelected (unsigned short node)
 
void invertSelected ()
 
void clearSelected ()
 
void moveSelected (const osg::Vec3d &offset)
 
void setDragOrigin (unsigned short node)
 
void setDragEndpoint (unsigned short node)
 
void setDragEndpoint (const osg::Vec3d &pos)
 
void resetIndicators ()
 
void applyPoint (CSMWorld::CommandMacro &commands, const osg::Vec3d &worldPos)
 
void applyPosition (CSMWorld::CommandMacro &commands)
 
void applyEdge (CSMWorld::CommandMacro &commands, unsigned short node1, unsigned short node2)
 
void applyEdges (CSMWorld::CommandMacro &commands, unsigned short node)
 
void applyRemoveNodes (CSMWorld::CommandMacro &commands)
 
void applyRemoveEdges (CSMWorld::CommandMacro &commands)
 
osg::ref_ptr< PathgridTaggetTag () const
 
void recreateGeometry ()
 
void removeGeometry ()
 
void update ()
 

Private Member Functions

void createGeometry ()
 
void createSelectedGeometry ()
 
void createSelectedGeometry (const CSMWorld::Pathgrid &source)
 
void removePathgridGeometry ()
 
void removeSelectedGeometry ()
 
void createDragGeometry (const osg::Vec3f &start, const osg::Vec3f &end, bool valid)
 
const CSMWorld::PathgridgetPathgridSource ()
 
int edgeExists (const CSMWorld::Pathgrid &source, unsigned short node1, unsigned short node2)
 
void addEdge (CSMWorld::CommandMacro &commands, const CSMWorld::Pathgrid &source, unsigned short node1, unsigned short node2)
 
void removeEdge (CSMWorld::CommandMacro &commands, const CSMWorld::Pathgrid &source, unsigned short node1, unsigned short node2)
 
int clampToCell (int v)
 

Private Attributes

CSMWorld::DatamData
 
CSMWorld::SubCellCollection
< CSMWorld::Pathgrid > & 
mPathgridCollection
 
std::string mId
 
CSMWorld::CellCoordinates mCoords
 
bool mInterior
 
NodeList mSelected
 
osg::Vec3d mMoveOffset
 
unsigned short mDragOrigin
 
bool mChangeGeometry
 
bool mRemoveGeometry
 
bool mUseOffset
 
osg::Group * mParent
 
osg::ref_ptr
< osg::PositionAttitudeTransform > 
mBaseNode
 
osg::ref_ptr< osg::Geode > mPathgridGeode
 
osg::ref_ptr< osg::Geometry > mPathgridGeometry
 
osg::ref_ptr< osg::Geometry > mSelectedGeometry
 
osg::ref_ptr< osg::Geometry > mDragGeometry
 
osg::ref_ptr< PathgridTagmTag
 

Member Typedef Documentation

typedef std::vector<unsigned short> CSVRender::Pathgrid::NodeList

Constructor & Destructor Documentation

CSVRender::Pathgrid::Pathgrid ( CSMWorld::Data data,
osg::Group *  parent,
const std::string &  pathgridId,
const CSMWorld::CellCoordinates coordinates 
)

Here is the call graph for this function:

CSVRender::Pathgrid::~Pathgrid ( )

Member Function Documentation

void CSVRender::Pathgrid::addEdge ( CSMWorld::CommandMacro commands,
const CSMWorld::Pathgrid source,
unsigned short  node1,
unsigned short  node2 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::Pathgrid::applyEdge ( CSMWorld::CommandMacro commands,
unsigned short  node1,
unsigned short  node2 
)

Here is the call graph for this function:

void CSVRender::Pathgrid::applyEdges ( CSMWorld::CommandMacro commands,
unsigned short  node 
)

Here is the call graph for this function:

void CSVRender::Pathgrid::applyPoint ( CSMWorld::CommandMacro commands,
const osg::Vec3d &  worldPos 
)

Here is the call graph for this function:

void CSVRender::Pathgrid::applyPosition ( CSMWorld::CommandMacro commands)

Here is the call graph for this function:

void CSVRender::Pathgrid::applyRemoveEdges ( CSMWorld::CommandMacro commands)

Here is the call graph for this function:

void CSVRender::Pathgrid::applyRemoveNodes ( CSMWorld::CommandMacro commands)

Here is the call graph for this function:

int CSVRender::Pathgrid::clampToCell ( int  v)
private

Here is the caller graph for this function:

void CSVRender::Pathgrid::clearSelected ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::Pathgrid::createDragGeometry ( const osg::Vec3f &  start,
const osg::Vec3f &  end,
bool  valid 
)
private

Here is the caller graph for this function:

void CSVRender::Pathgrid::createGeometry ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::Pathgrid::createSelectedGeometry ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::Pathgrid::createSelectedGeometry ( const CSMWorld::Pathgrid source)
private

Here is the call graph for this function:

int CSVRender::Pathgrid::edgeExists ( const CSMWorld::Pathgrid source,
unsigned short  node1,
unsigned short  node2 
)
private

Here is the caller graph for this function:

const CSMWorld::CellCoordinates & CSVRender::Pathgrid::getCoordinates ( ) const
const std::string & CSVRender::Pathgrid::getId ( ) const

Here is the caller graph for this function:

const CSMWorld::Pathgrid * CSVRender::Pathgrid::getPathgridSource ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

const Pathgrid::NodeList & CSVRender::Pathgrid::getSelected ( ) const
osg::ref_ptr< PathgridTag > CSVRender::Pathgrid::getTag ( ) const
void CSVRender::Pathgrid::invertSelected ( )

Here is the call graph for this function:

bool CSVRender::Pathgrid::isSelected ( ) const
void CSVRender::Pathgrid::moveSelected ( const osg::Vec3d &  offset)

Here is the call graph for this function:

void CSVRender::Pathgrid::recreateGeometry ( )

Here is the caller graph for this function:

void CSVRender::Pathgrid::removeEdge ( CSMWorld::CommandMacro commands,
const CSMWorld::Pathgrid source,
unsigned short  node1,
unsigned short  node2 
)
private
void CSVRender::Pathgrid::removeGeometry ( )
void CSVRender::Pathgrid::removePathgridGeometry ( )
private

Here is the caller graph for this function:

void CSVRender::Pathgrid::removeSelectedGeometry ( )
private

Here is the caller graph for this function:

void CSVRender::Pathgrid::resetIndicators ( )
void CSVRender::Pathgrid::selectAll ( )

Here is the call graph for this function:

void CSVRender::Pathgrid::setDragEndpoint ( unsigned short  node)

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::Pathgrid::setDragEndpoint ( const osg::Vec3d &  pos)

Here is the call graph for this function:

void CSVRender::Pathgrid::setDragOrigin ( unsigned short  node)
void CSVRender::Pathgrid::toggleSelected ( unsigned short  node)

Here is the call graph for this function:

void CSVRender::Pathgrid::update ( )

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

osg::ref_ptr<osg::PositionAttitudeTransform> CSVRender::Pathgrid::mBaseNode
private
bool CSVRender::Pathgrid::mChangeGeometry
private
CSMWorld::CellCoordinates CSVRender::Pathgrid::mCoords
private
CSMWorld::Data& CSVRender::Pathgrid::mData
private
osg::ref_ptr<osg::Geometry> CSVRender::Pathgrid::mDragGeometry
private
unsigned short CSVRender::Pathgrid::mDragOrigin
private
std::string CSVRender::Pathgrid::mId
private
bool CSVRender::Pathgrid::mInterior
private
osg::Vec3d CSVRender::Pathgrid::mMoveOffset
private
osg::Group* CSVRender::Pathgrid::mParent
private
CSMWorld::SubCellCollection<CSMWorld::Pathgrid>& CSVRender::Pathgrid::mPathgridCollection
private
osg::ref_ptr<osg::Geode> CSVRender::Pathgrid::mPathgridGeode
private
osg::ref_ptr<osg::Geometry> CSVRender::Pathgrid::mPathgridGeometry
private
bool CSVRender::Pathgrid::mRemoveGeometry
private
NodeList CSVRender::Pathgrid::mSelected
private
osg::ref_ptr<osg::Geometry> CSVRender::Pathgrid::mSelectedGeometry
private
osg::ref_ptr<PathgridTag> CSVRender::Pathgrid::mTag
private
bool CSVRender::Pathgrid::mUseOffset
private

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