Om
1.0.0
A universal framework for multimedia simulation
|
A class that edits an object of the PhysicsShape type. More...
#include <omPhysicsShapeEditor.h>
Classes | |
class | Factory |
class | Spatial |
class | View |
Public Member Functions | |
PhysicsShapeEditor (PhysicsShape *newShape, ResourceID *newShapeID, const EditorServices &services) | |
Create a new physics shape editor for the specified physics shape. More... | |
virtual OpaqueResource | getResource () const |
Return an opaque pointer to the resource that is currently being edited. More... | |
virtual const ResourceType & | getResourceType () const |
Return the resource type that this editor is able to edit. More... | |
virtual GUIImage | getResourceIcon (const Vector2f &size) const |
Return an image that represents the icon for the edited resource. More... | |
virtual om::graphics::gui::GUIObject * | getMainView () const |
Return a pointer to a GUI object that should be used as the main view for this editor. More... | |
virtual om::graphics::gui::GUIObject * | getMiniView () const |
Return a pointer to a GUI object that should be used as the mini view for this editor. More... | |
Public Member Functions inherited from om::editors::base::ResourceTypeEditor | |
ResourceTypeEditor () | |
Create a new resource type editor that has no resource set. More... | |
ResourceTypeEditor (const EditorServices &newServices) | |
Create a new resource type editor that uses the specified resource set. More... | |
virtual | ~ResourceTypeEditor () |
Destroy this resource type editor and release all internal resources. More... | |
OM_INLINE const EditorServices & | getServices () const |
Return a reference to the external services for this resource type editor. More... | |
virtual void | setServices (const EditorServices &newServices) |
Set the external services for this resource type editor. More... | |
OM_INLINE const Delegate & | getDelegate () const |
Return a reference to the delegate for this resource type editor. More... | |
virtual void | setDelegate (const Delegate &newDelegate) |
Set the delegate for this resource type editor. More... | |
virtual void | editedResource (const OpaqueResource &resource) |
A method that should be called when a resource used by the editor is modified. More... | |
virtual Bool | getSelectedResource (OpaqueResource &resource) const |
Get an opaque reference to the currently selected resource in the editor. More... | |
virtual Size | getInputCount () const |
Return the number of input data connections there are for this editor's resource. More... | |
virtual Size | getOutputCount () const |
Return the number of output data connections there are for this editor's resource. More... | |
virtual const ResourceType & | getInputType (Index inputIndex) const |
Return the resource type of the input data connection for this editor's resource at the specified index. More... | |
virtual const ResourceType & | getOutputType (Index outputIndex) const |
Return the resource type of the output data connection for this editor's resource at the specified index. More... | |
virtual UTF8String | getInputName (Index inputIndex) const |
Return the name of the input data connection for this editor's resource at the specified index. More... | |
virtual UTF8String | getOutputName (Index outputIndex) const |
Return the name of the output data connection for this editor's resource at the specified index. More... | |
virtual GUIImage | getInputIcon (Index inputIndex, const Vector2f &size) const |
Return the icon of the input data connection for this editor's resource at the specified index. More... | |
virtual GUIImage | getOutputIcon (Index outputIndex, const Vector2f &size) const |
Return the icon of the output data connection for this editor's resource at the specified index. More... | |
virtual OpaqueResource | newInputConnection (Index inputIndex) const |
Construct and return a pointer to a new input connection at the specified index. More... | |
virtual OpaqueResource | newOutputConnection (Index outputIndex) const |
Construct and return a pointer to a new output connection at the specified index. More... | |
virtual OpaqueResource | newInputConnector (Index inputIndex, const OpaqueResource &connection) const |
Construct and return a pointer to a new input connector at the specified index. More... | |
virtual OpaqueResource | newOutputConnector (Index outputIndex, const OpaqueResource &connection) const |
Construct and return a pointer to a new output connector at the specified index. More... | |
Additional Inherited Members | |
Protected Attributes inherited from om::editors::base::ResourceTypeEditor | |
EditorServices | services |
An object that contains the external services for this editor. More... | |
Delegate | delegate |
An object that responds to events for this resource type editor. More... | |
A class that edits an object of the PhysicsShape type.
om::editors::types::PhysicsShapeEditor::PhysicsShapeEditor | ( | PhysicsShape * | newShape, |
ResourceID * | newShapeID, | ||
const EditorServices & | services | ||
) |
Create a new physics shape editor for the specified physics shape.
|
virtual |
Return an opaque pointer to the resource that is currently being edited.
Implements om::editors::base::ResourceTypeEditor.
|
virtual |
Return the resource type that this editor is able to edit.
Implements om::editors::base::ResourceTypeEditor.
|
virtual |
Return an image that represents the icon for the edited resource.
Implements om::editors::base::ResourceTypeEditor.
|
virtual |
Return a pointer to a GUI object that should be used as the main view for this editor.
Implements om::editors::base::ResourceTypeEditor.
|
virtual |
Return a pointer to a GUI object that should be used as the mini view for this editor.
Reimplemented from om::editors::base::ResourceTypeEditor.