Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | List of all members
om::editors::types::PhysicsObjectEditor::Factory Class Reference

#include <omPhysicsObjectEditor.h>

Inheritance diagram for om::editors::types::PhysicsObjectEditor::Factory:
om::editors::base::ResourceTypeEditorFactory

Public Member Functions

virtual const ResourceTypegetResourceType () const
 Return the resource type that this editor is able to edit. More...
 
virtual UTF8String getResourceTypeDisplayName () const
 Return the display name that is used for this factory's resource type. More...
 
virtual ResourceCategory getResourceTypeCategory () const
 Return the category of resource type this type belongs to. More...
 
virtual Size getResourceSubTypeCount () const
 Return the number of subtypes there are for this type editor factory. More...
 
virtual ResourceSubType getResourceSubType (Index subTypeIndex) const
 Return the name of the subtype with the specified index. More...
 
virtual UTF8String getResourceSubTypeDisplayName (Index subTypeIndex) const
 Return the display name of the subtype with the specified index. More...
 
virtual GUIImage getResourceSubTypeIcon (Index subTypeIndex, const Vector2f &size) const
 Return an image that represents the icon for the resource sub type with the specified index. More...
 
virtual GUIImage getResourceTypeIcon (const Vector2f &size) const
 Return an image that represents the icon for the resource type. More...
 
virtual OpaqueResource newResource (Index subTypeIndex, ResourceSet &resourceSet) const
 Create a new default instance of this resource type in the resource set and return a pointer to the resource. More...
 
virtual Shared< ResourceTypeEditornewEditor (const OpaqueResource &resource, const EditorServices &services) const
 Create a new editor for a resource of this factory's resource type. More...
 
- Public Member Functions inherited from om::editors::base::ResourceTypeEditorFactory
virtual ~ResourceTypeEditorFactory ()
 Destroy the resource type editor factory. More...
 
virtual EditorTypeFlags getResourceTypeFlags () const
 Return an object containing boolean flags for this resource type. More...
 
virtual ResourceSubType getResourceSubType (const OpaqueResource &resource) const
 Return the index of the subtype for the given resource. More...
 
virtual Bool getResourceSubTypeIndex (const ResourceSubType &subType, Index &subTypeIndex) const
 Get the index of the specified subtype. More...
 
virtual GUIImage getResourceIcon (const OpaqueResource &resource, const Vector2f &size) const
 Return an image that represents the icon for the specified resource. More...
 
virtual OpaqueResource newResource (const ResourceSubType &subType, ResourceSet &resourceSet) const
 Create a new default instance of this resource type in the resource set and return a pointer to the resource. More...
 
virtual Shared< SpatialObjectgetSpatialObject (const OpaqueResource &resource, const EditorServices &services) const
 Construct and return a pointer to the spatial representation of the specified resource object of this type. More...
 

Member Function Documentation

virtual const ResourceType& om::editors::types::PhysicsObjectEditor::Factory::getResourceType ( ) const
virtual

Return the resource type that this editor is able to edit.

Implements om::editors::base::ResourceTypeEditorFactory.

virtual UTF8String om::editors::types::PhysicsObjectEditor::Factory::getResourceTypeDisplayName ( ) const
virtual

Return the display name that is used for this factory's resource type.

Reimplemented from om::editors::base::ResourceTypeEditorFactory.

virtual ResourceCategory om::editors::types::PhysicsObjectEditor::Factory::getResourceTypeCategory ( ) const
virtual

Return the category of resource type this type belongs to.

Reimplemented from om::editors::base::ResourceTypeEditorFactory.

virtual Size om::editors::types::PhysicsObjectEditor::Factory::getResourceSubTypeCount ( ) const
virtual

Return the number of subtypes there are for this type editor factory.

Reimplemented from om::editors::base::ResourceTypeEditorFactory.

virtual ResourceSubType om::editors::types::PhysicsObjectEditor::Factory::getResourceSubType ( Index  subTypeIndex) const
virtual

Return the name of the subtype with the specified index.

Reimplemented from om::editors::base::ResourceTypeEditorFactory.

virtual UTF8String om::editors::types::PhysicsObjectEditor::Factory::getResourceSubTypeDisplayName ( Index  subTypeIndex) const
virtual

Return the display name of the subtype with the specified index.

Reimplemented from om::editors::base::ResourceTypeEditorFactory.

virtual GUIImage om::editors::types::PhysicsObjectEditor::Factory::getResourceSubTypeIcon ( Index  subTypeIndex,
const Vector2f &  size 
) const
virtual

Return an image that represents the icon for the resource sub type with the specified index.

Reimplemented from om::editors::base::ResourceTypeEditorFactory.

virtual GUIImage om::editors::types::PhysicsObjectEditor::Factory::getResourceTypeIcon ( const Vector2f &  size) const
virtual

Return an image that represents the icon for the resource type.

Reimplemented from om::editors::base::ResourceTypeEditorFactory.

virtual OpaqueResource om::editors::types::PhysicsObjectEditor::Factory::newResource ( Index  subTypeIndex,
ResourceSet resourceSet 
) const
virtual

Create a new default instance of this resource type in the resource set and return a pointer to the resource.

Implements om::editors::base::ResourceTypeEditorFactory.

virtual Shared<ResourceTypeEditor> om::editors::types::PhysicsObjectEditor::Factory::newEditor ( const OpaqueResource resource,
const EditorServices services 
) const
virtual

Create a new editor for a resource of this factory's resource type.

If an editor is not able to be created for the resource, a NULL pointer is returned.

Reimplemented from om::editors::base::ResourceTypeEditorFactory.


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