![]() |
ufe
4.2
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
|
Universal Front End abstract scene item. More...
#include <sceneItem.h>
Public Types | |
typedef std::shared_ptr< SceneItem > | Ptr |
Public Member Functions | |
SceneItem (const Path &path) | |
SceneItem (const SceneItem &)=default | |
Default copy constructor. More... | |
virtual | ~SceneItem () |
Destructor. More... | |
const Path & | path () const |
Rtid | runTimeId () const |
std::string | nodeName () const |
virtual std::string | nodeType () const =0 |
virtual std::vector< std::string > | ancestorNodeTypes () const |
virtual bool | isProperty () const |
bool | operator== (const SceneItem &rhs) const |
bool | operator!= (const SceneItem &rhs) const |
Private Attributes | |
Path | fPath |
Universal Front End abstract scene item.
A scene item identifies an object or 3D path in the scene, independent of its underlying runtime. It consists of a path that identifies an object in the scene.
A scene item may optionally represent a property associated with a given scene object. A property represents data associated with a single node or object. In different runtimes, it is variously known as an attribute, a component, or an underworld path, but is always associated with a single node or object.
Definition at line 37 of file sceneItem.h.
typedef std::shared_ptr<SceneItem> Ufe::SceneItem::Ptr |
Definition at line 40 of file sceneItem.h.
Ufe::SceneItem::SceneItem | ( | const Path & | path | ) |
Constructor.
path | Path of the scene item to build. |
|
default |
Default copy constructor.
|
virtual |
Destructor.
|
virtual |
Return a list of all ancestor types (including the type of the scene item itself) in order from closest ancestor to farthest. The starting type is itself included, as the first element of the results vector. The implementation in this class returns a vector containing a single item, the nodeType of this scene item.
|
virtual |
Return whether this scene item represents a property. The implementation in this class returns false.
std::string Ufe::SceneItem::nodeName | ( | ) | const |
|
pure virtual |
Pure virtual method to return the type of the last node
bool Ufe::SceneItem::operator!= | ( | const SceneItem & | rhs | ) | const |
Unfortunately no compiler-generated default equality operators. Items are equal if their path is equal.
bool Ufe::SceneItem::operator== | ( | const SceneItem & | rhs | ) | const |
Unfortunately no compiler-generated default equality operators. Items are equal if their path is equal.
|
private |
Definition at line 87 of file sceneItem.h.