#include <object.hpp>
Enumerator |
---|
Override_Position |
|
Override_Rotation |
|
Override_Scale |
|
CSVRender::Object::Object |
( |
const Object & |
| ) |
|
|
private |
CSVRender::Object::Object |
( |
CSMWorld::Data & |
data, |
|
|
osg::Group * |
cellNode, |
|
|
const std::string & |
id, |
|
|
bool |
referenceable, |
|
|
bool |
forceBaseToZero = false |
|
) |
| |
CSVRender::Object::~Object |
( |
| ) |
|
- Parameters
-
forceBaseToZero | If this is a reference ignore the coordinates and place it at 0, 0, 0 instead. |
void CSVRender::Object::adjustTransform |
( |
| ) |
|
|
private |
Adjust position, orientation and scale.
Apply override changes via command and end edit mode.
- Todo:
- figure out worldspace (not important until multiple worldspaces are supported)
void CSVRender::Object::clear |
( |
| ) |
|
|
private |
Remove object from node (includes deleting)
osg::Vec3f CSVRender::Object::getMarkerPosition |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z, |
|
|
int |
axis |
|
) |
| |
|
private |
Throws an exception if *this was constructed with referenceable.
std::string CSVRender::Object::getReferenceableId |
( |
| ) |
const |
std::string CSVRender::Object::getReferenceId |
( |
| ) |
const |
Returns an empty string if this is a refereceable-type object.
float CSVRender::Object::getScale |
( |
| ) |
const |
bool CSVRender::Object::getSelected |
( |
| ) |
const |
bool CSVRender::Object::isEdited |
( |
| ) |
const |
Is there currently an editing operation running on this object?
osg::ref_ptr< osg::Node > CSVRender::Object::makeMoveOrScaleMarker |
( |
int |
axis | ) |
|
|
private |
osg::ref_ptr< osg::Node > CSVRender::Object::makeRotateMarker |
( |
int |
axis | ) |
|
|
private |
bool CSVRender::Object::referenceableAboutToBeRemoved |
( |
const QModelIndex & |
parent, |
|
|
int |
start, |
|
|
int |
end |
|
) |
| |
- Returns
- Did this call result in a modification of the visual representation of this object?
bool CSVRender::Object::referenceableDataChanged |
( |
const QModelIndex & |
topLeft, |
|
|
const QModelIndex & |
bottomRight |
|
) |
| |
- Returns
- Did this call result in a modification of the visual representation of this object?
bool CSVRender::Object::referenceDataChanged |
( |
const QModelIndex & |
topLeft, |
|
|
const QModelIndex & |
bottomRight |
|
) |
| |
- Returns
- Did this call result in a modification of the visual representation of this object?
void CSVRender::Object::reset |
( |
| ) |
|
Erase all overrides and restore the visual representation of the object to its true state.
void CSVRender::Object::setEdited |
( |
int |
flags | ) |
|
void CSVRender::Object::setPosition |
( |
const float |
position[3] | ) |
|
void CSVRender::Object::setRotation |
( |
const float |
rotation[3] | ) |
|
void CSVRender::Object::setScale |
( |
float |
scale | ) |
|
void CSVRender::Object::setSelected |
( |
bool |
selected | ) |
|
Mark the object as selected, selected objects show an outline effect.
void CSVRender::Object::setSubMode |
( |
int |
subMode | ) |
|
void CSVRender::Object::update |
( |
| ) |
|
|
private |
Update model
- Note
- Make sure adjustTransform() was called first so world space particles get positioned correctly
- Todo:
- check for Deleted state (error 1)
void CSVRender::Object::updateMarker |
( |
| ) |
|
|
private |
const float CSVRender::Object::MarkerHeadLength = 50 |
|
staticprivate |
const float CSVRender::Object::MarkerHeadWidth = 50 |
|
staticprivate |
const float CSVRender::Object::MarkerShaftBaseLength = 70 |
|
staticprivate |
const float CSVRender::Object::MarkerShaftWidth = 30 |
|
staticprivate |
osg::ref_ptr<osg::PositionAttitudeTransform> CSVRender::Object::mBaseNode |
|
private |
bool CSVRender::Object::mForceBaseToZero |
|
private |
osg::ref_ptr<osg::Node> CSVRender::Object::mMarker[3] |
|
private |
osg::ref_ptr<osgFX::Scribe> CSVRender::Object::mOutline |
|
private |
int CSVRender::Object::mOverrideFlags |
|
private |
osg::Group* CSVRender::Object::mParentNode |
|
private |
std::string CSVRender::Object::mReferenceableId |
|
private |
std::string CSVRender::Object::mReferenceId |
|
private |
osg::ref_ptr<osg::PositionAttitudeTransform> CSVRender::Object::mRootNode |
|
private |
float CSVRender::Object::mScaleOverride |
|
private |
bool CSVRender::Object::mSelected |
|
private |
int CSVRender::Object::mSubMode |
|
private |
The documentation for this class was generated from the following files:
- /home/travis/build/OpenMW/openmw/apps/opencs/view/render/object.hpp
- /home/travis/build/OpenMW/openmw/apps/opencs/view/render/object.cpp