1 #ifndef OPENCS_VIEW_OBJECT_H
2 #define OPENCS_VIEW_OBJECT_H
6 #include <boost/shared_ptr.hpp>
9 #include <osg/Referenced>
20 class PositionAttitudeTransform;
56 virtual QString
getToolTip (
bool hideBasics)
const;
89 osg::ref_ptr<osg::PositionAttitudeTransform>
mRootNode;
90 osg::ref_ptr<osg::PositionAttitudeTransform>
mBaseNode;
131 const std::string&
id,
bool referenceable,
132 bool forceBaseToZero =
false);
146 const QModelIndex& bottomRight);
161 osg::ref_ptr<TagBase>
getTag()
const;
bool getSelected() const
Definition: object.cpp:459
int mOverrideFlags
Definition: object.hpp:98
~Object()
Definition: object.cpp:434
Wrapper class that constructs and provides access to the most commonly used resource subsystems...
Definition: resourcesystem.hpp:24
Definition: object.hpp:59
Definition: object.hpp:74
bool referenceableAboutToBeRemoved(const QModelIndex &parent, int start, int end)
Definition: object.cpp:482
Object(const Object &)
Not implemented.
osg::ref_ptr< osg::Node > makeMoveOrScaleMarker(int axis)
Definition: object.cpp:212
bool referenceDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: object.cpp:503
ObjectTag(Object *object)
Definition: object.cpp:56
void setSelected(bool selected)
Mark the object as selected, selected objects show an outline effect.
Definition: object.cpp:441
Definition: object.hpp:75
std::string getReferenceableId() const
Definition: object.cpp:540
Definition: object.hpp:68
Definition: object.hpp:76
static const float MarkerShaftBaseLength
Definition: object.hpp:82
void updateMarker()
Definition: object.cpp:175
std::string mReferenceId
Definition: object.hpp:87
static const float MarkerHeadWidth
Definition: object.hpp:83
static const float MarkerShaftWidth
Definition: object.hpp:81
ESM::Position getPosition() const
Definition: object.cpp:577
osg::ref_ptr< osg::PositionAttitudeTransform > mBaseNode
Definition: object.hpp:90
int mAxis
Definition: object.hpp:65
static const float MarkerHeadLength
Definition: object.hpp:84
Resource::ResourceSystem * mResourceSystem
Definition: object.hpp:94
OverrideFlags
Definition: object.hpp:72
void clear()
Remove object from node (includes deleting)
Definition: object.cpp:71
Object & operator=(const Object &)
Not implemented.
bool referenceableDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: object.cpp:464
osg::Group * mParentNode
Definition: object.hpp:93
void setScale(float scale)
Set override scale.
Definition: object.cpp:617
void setEdited(int flags)
Definition: object.cpp:555
float getScale() const
Definition: object.cpp:592
std::string mReferenceableId
Definition: object.hpp:88
osg::Vec3f getMarkerPosition(float x, float y, float z, int axis)
Definition: object.cpp:385
void adjustTransform()
Adjust position, orientation and scale.
Definition: object.cpp:146
void apply(CSMWorld::CommandMacro &commands)
Apply override changes via command and end edit mode.
Definition: object.cpp:626
bool mSelected
Definition: object.hpp:92
Definition: commandmacro.hpp:11
ESM::Position mPositionOverride
Definition: object.hpp:96
Definition: tagbase.hpp:12
Wrapper for CellRef sub record.
Definition: ref.hpp:11
Definition: object.hpp:48
bool isEdited() const
Is there currently an editing operation running on this object?
Definition: object.cpp:550
CSMWorld::Data & mData
Definition: object.hpp:86
void update()
Definition: object.cpp:75
virtual QString getToolTip(bool hideBasics) const
Definition: object.cpp:60
ObjectMarkerTag(Object *object, int axis)
Definition: object.cpp:66
osg::ref_ptr< osg::PositionAttitudeTransform > mRootNode
Definition: object.hpp:89
osg::ref_ptr< TagBase > getTag() const
Definition: object.cpp:545
float mScaleOverride
Definition: object.hpp:97
int mSubMode
Definition: object.hpp:100
Object * mObject
Definition: object.hpp:54
void setSubMode(int subMode)
Definition: object.cpp:682
void reset()
Definition: object.cpp:691
void setPosition(const float position[3])
Set override position.
Definition: object.cpp:597
osg::ref_ptr< osgFX::Scribe > mOutline
Definition: object.hpp:91
std::string getReferenceId() const
Returns an empty string if this is a refereceable-type object.
Definition: object.cpp:535
osg::ref_ptr< osg::Node > mMarker[3]
Definition: object.hpp:99
bool mForceBaseToZero
Definition: object.hpp:95
const CSMWorld::CellRef & getReference() const
Throws an exception if *this was constructed with referenceable.
Definition: object.cpp:167
void setRotation(const float rotation[3])
Set override rotation.
Definition: object.cpp:607
osg::ref_ptr< osg::Node > makeRotateMarker(int axis)
Definition: object.cpp:304