AGX Dynamics 2.42.3.0
Loading...
Searching...
No Matches
agx::Physics::Geometry::ConeModel Class Reference

Abstract description of the data attributes for the Physics.Geometry.Cone entity. More...

#include <ConeEntity.h>

+ Inheritance diagram for agx::Physics::Geometry::ConeModel:

Public Types

typedef ConePtr PtrT
 
- Public Types inherited from agx::Physics::Geometry::ShapeModel
typedef ShapePtr PtrT
 
- Public Types inherited from agx::ReferencedModel
typedef ReferencedPtr PtrT
 
- Public Types inherited from agxData::EntityModel
typedef agx::Event1< EntityStorage * > StorageEvent
 
- Public Types inherited from agx::Component
typedef Event2< Component *, Object * > ObjectEvent
 Event when adding removing child objects.
 
typedef Callback1< Object * > TraverseCallback
 
- Public Types inherited from agx::Object
typedef agx::observer_ptr< const Event > EventConstObserver
 
typedef agx::ref_ptr< const Event > EventConstRef
 
typedef agx::observer_ptr< Event > EventObserver
 
typedef agx::Vector< EventObserver > EventObserverVector
 
typedef agx::VectorPOD< Event * > EventPtrVector
 
typedef agx::ref_ptr< Event > EventRef
 
typedef agx::Vector< EventRef > EventRefVector
 

Public Member Functions

 ConeModel (const agx::String &name="Cone")
 
virtual void shutdownCleanup () override
 This is part of internal cleanup and should not be called by users.
 
- Public Member Functions inherited from agx::Physics::Geometry::ShapeModel
 ShapeModel (const agx::String &name="Shape")
 
virtual void shutdownCleanup () override
 This is part of internal cleanup and should not be called by users.
 
- Public Member Functions inherited from agx::ReferencedModel
 ReferencedModel (const agx::String &name="Referenced")
 
virtual void shutdownCleanup () override
 This is part of internal cleanup and should not be called by users.
 
- Public Member Functions inherited from agxData::EntityModel
 EntityModel (const agx::Name &name)
 
virtual ~Loader ()
 
void addAttribute (Attribute *attribute)
 Add an attribute to the entity.
 
virtual void configure (agx::TiXmlElement *eEntity)
 
virtual void construct (agxData::EntityPtr)
 
virtual EntityData * createData (EntityStorage *storage)
 
Attribute * getAttribute (const agx::Name &name)
 
const Attribute * getAttribute (const agx::Name &name) const
 
const AttributePtrVector & getAttributes () const
 
EntityStorage * getDefaultStorage ()
 
size_t getNumBytes ()
 
size_t getNumBytes (agx::Device *device)
 
EntityModel * getSource ()
 
const EntityModel * getSource () const
 
bool hasConstructor () const
 
virtual void initAttributeAccessors ()
 
virtual EntityModel * load ()=0
 
 Loader (const char *modelPath)
 
void print () const
 
void print (std::ostream &stream) const
 Print the registered attributes.
 
void setBaseEntity (EntityModel *base)
 
void setHasConstructor (bool flag)
 
void setUseInstanceTable (bool flag)
 
virtual void shutdownCleanup ()
 
bool useInstanceTable () const
 
- Public Member Functions inherited from agx::Model
 Model (const agx::Name &name, agx::Model *source)
 
 Model (const agx::Name &name, const agx::Name &implementation=agx::Name())
 
virtual void buildNavigationTree (agxJson::Value &eNode) const override
 
agx::String fullInheritancePath () const
 The active instances of this model.
 
agx::String fullName () const
 
agx::String fullPath () const
 
const agx::Name & getImplementationName () const
 
agx::Namespace * getNamespace ()
 
const agx::Namespace * getNamespace () const
 
agx::Path getPath () const
 
agx::Path getPath (const agx::Object *root) const
 
agx::Model * getSource ()
 
const agx::Model * getSource () const
 
const agx::String & getSourcePath () const
 
bool hasParent (const agx::Model *parent) const
 
bool hasSource (const agx::Model *source) const
 
template<typename T >
bool is () const
 Subclass test.
 
bool is (const agx::Model *other) const
 
bool isShutdown () const
 
void setSource (Model *source)
 
void setSourcePath (const String &path)
 
- Public Member Functions inherited from agx::Component
 Component (const agx::Name &name=agx::Name(), agx::Model *model=agx::Component::ClassModel(), agx::Device *device=nullptr)
 
virtual void addObject (agx::Object *object, bool assignContext=true)
 Add an object to the component.
 
virtual String autoComplete (const String &partialName, StringVector &matchingNames) const
 
virtual void buildNavigationTree (agxJson::Value &eNode) const override
 
void configure (Model *model)
 
virtual void configure (TiXmlElement *eComponent) override
 
agx::Device * getDevice ()
 
template<typename T >
T * getDevice ()
 
const agx::Device * getDevice () const
 
template<typename T >
const T * getDevice () const
 
size_t getNumObjects (const agx::Name &name) const
 
agx::Object * getObject (const agx::Name &name, agx::Model *model, size_t index=0)
 
const agx::Object * getObject (const agx::Name &name, agx::Model *model, size_t index=0) const
 
agx::Object * getObject (const agx::Name &name, size_t index=0)
 
template<typename T >
T * getObject (const agx::Name &name, size_t index=0)
 
const agx::Object * getObject (const agx::Name &name, size_t index=0) const
 
template<typename T >
const T * getObject (const agx::Name &name, size_t index=0) const
 
const agx::ObjectRefVector & getObjects () const
 
template<typename T >
void getObjects (agx::ObjectPtrVector &result, bool recursive=false) const
 Returns All child objects of a specified type in the result container.
 
void getObjects (agx::ObjectPtrVector &result, const agx::Model *model, bool recursive=false) const
 
virtual Object * getResourceImpl (const Path &path, agx::Model *model) override
 
virtual void printSubtree () const override
 
void printSubtree (std::ostream &stream, int depth=0) const
 
virtual void rebind () override
 
void removeAllObjects ()
 Remove all components.
 
virtual void removeObject (agx::Object *object)
 Remove an object from the component.
 
void removeObject (const agx::Name &name, size_t index=0)
 Remove an object with a specified name (and optional index) from the component.
 
virtual void snapshot (TiXmlNode *eParent, const String &directory) const override
 
void traverse (ComponentVisitor *)
 
void traverse (const TraverseCallback &callback)
 
- Public Member Functions inherited from agx::Object
 Object (const Name &name=Name(), Model *model=Object::ClassModel())
 
void addListener (EventListener *listener)
 
virtual void buildNavigationTree (agxJson::Value &eNode) const
 
virtual void configure (TiXmlElement *)
 
agx::String fullName () const
 
agx::String fullPath () const
 
agx::String fullPath (const agx::Object *root) const
 
template<typename T >
T * getAutoScopedResource (const agx::Path &path)
 
template<typename T >
const T * getAutoScopedResource (const agx::Path &path) const
 
agx::Object * getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr)
 
const agx::Object * getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) const
 
agx::Object * getContext ()
 
template<typename T >
T * getContext ()
 
const agx::Object * getContext () const
 
template<typename T >
const T * getContext () const
 
agx::UInt32 getId () const
 
const agx::Name & getImplementationName () const
 
agx::Model * getModel ()
 
const agx::Model * getModel () const
 
const agx::Name & getName () const
 
agx::Object * getNextSibling ()
 
const agx::Object * getNextSibling () const
 
agx::Path getPath () const
 
agx::Path getPath (const agx::Object *root) const
 
template<typename T >
T * getResource (const agx::Path &path)
 
template<typename T >
const T * getResource (const agx::Path &path) const
 
agx::Object * getResource (const agx::Path &path, agx::Model *model=nullptr)
 
const agx::Object * getResource (const agx::Path &path, agx::Model *model=nullptr) const
 
virtual agx::Object * getResourceImpl (const agx::Path &path, agx::Model *model)
 
agx::Object * getRootContext ()
 
const agx::Object * getRootContext () const
 
bool hasListener (EventListener *listener)
 
bool hasParent (const agx::Object *node) const
 
bool isUnique () const
 
virtual void printSubtree () const
 
virtual void rebind ()
 
void removeListener (EventListener *listener)
 
virtual void save (TiXmlElement *) const
 
virtual void setContext (agx::Object *context)
 
void setId (UInt32 id)
 
void setModel (agx::Model *model)
 Set the object model (handled automatically).
 
void setName (const agx::Name &name)
 Set the name of the object.
 
virtual void snapshot (TiXmlNode *, const String &) const
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor.
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting.
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match.
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test.
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object.
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 

Static Public Member Functions

static ConePtr createInstance ()
 Create and return a pointer to a new instance in the default storage for this entity model.
 
static agxData::EntityStorage * defaultStorage ()
 
static ConeModel * instance ()
 
- Static Public Member Functions inherited from agx::Physics::Geometry::ShapeModel
static ShapePtr createInstance ()
 Create and return a pointer to a new instance in the default storage for this entity model.
 
static agxData::EntityStorage * defaultStorage ()
 
static ShapeModel * instance ()
 
- Static Public Member Functions inherited from agx::ReferencedModel
static ReferencedPtr createInstance ()
 Create and return a pointer to a new instance in the default storage for this entity model.
 
static agxData::EntityStorage * defaultStorage ()
 
static ReferencedModel * instance ()
 
- Static Public Member Functions inherited from agxData::EntityModel
static agx::Model * ClassModel ()
 
static bool findEntityPath (const agx::Path &entityPath, agx::Path &fullEntityPath, agx::String &filePath, agx::String &classPath, agx::TiXmlElement *relativeRoot=nullptr, agxIO::Environment::Type envType=agxIO::Environment::RUNTIME_PATH)
 
static EntityModel * getRootModel ()
 
static bool getThreadSafe ()
 
static EntityModel * load (agx::TiXmlElement *eEntity, agx::Device *device)
 
static agx::Namespace * root ()
 
static void setThreadSafe (bool flag)
 
- Static Public Member Functions inherited from agx::Model
static Model * ClassModel ()
 
static agx::Model * createModel (const agx::Path &path, const agx::Name &implementation, agx::Model *source)
 
static bool getDiskPath (const Path &modelPath, Path &fullModelPath, String &filePath, TiXmlElement *relativeRoot, agxIO::Environment::Type envType, const String &fileExtension)
 Locate a model definition file.
 
static agx::String getFileSystemRoot (agx::TiXmlElement *element, agxIO::Environment::Type pathType=agxIO::Environment::RUNTIME_PATH)
 
static agx::Path getNamespace (agx::TiXmlElement *element, agxIO::Environment::Type pathType=agxIO::Environment::RUNTIME_PATH)
 
static agx::Path getNamespace (const agx::String &filePath, agxIO::Environment::Type pathType=agxIO::Environment::RUNTIME_PATH)
 
static agx::Path getPath (agx::TiXmlElement *element, agx::Name &implementation, agxIO::Environment::Type pathType=agxIO::Environment::RUNTIME_PATH)
 
static agx::Path getPath (agx::TiXmlElement *element, agxIO::Environment::Type pathType=agxIO::Environment::RUNTIME_PATH)
 
static agx::Path getPath (const agx::String &filePath, agxIO::Environment::Type pathType=agxIO::Environment::RUNTIME_PATH)
 
static void parsePathString (const agx::String &pathStr, agx::Path &path, agx::Name &implementation)
 
static agx::Namespace * root ()
 
- Static Public Member Functions inherited from agx::Component
static Component * _load (TiXmlElement *eComponent, Device *device)
 
static agx::Model * ClassModel ()
 
static Component * load (const Path &path, const Name &implementation, Device *device, const Path &_namespace=Path())
 
static Component * load (const String &path, const Path &_namespace=Path())
 
static Component * load (const String &path, Device *device, const Path &_namespace=Path())
 
static Component * load (TiXmlElement *eComponent, Device *device)
 
- Static Public Member Functions inherited from agx::Object
static agx::Model * ClassModel ()
 
static agx::String generateName (const agx::String &bindPath)
 
static const HashSet< Object * > & getActiveObjects ()
 
static bool getEnableRebind ()
 Should rebinding be allowed? Right now a global setting.
 
static Object * load (const String &path, Device *device, const String &type, const String &attribute, const String &value)
 
template<typename T >
static T * load (const String &path, Device *device, const String &type, const String &attribute, const String &value)
 
static Object * load (const String &path, Device *device, const String &type="", size_t instance=0)
 
template<typename T >
static T * load (const String &path, Device *device, const String &type="", size_t instance=0)
 
static void load (const String &path, Device *device, ObjectPtrVector &loadedObjects)
 
static Object * load (TiXmlElement *eObject, Device *device)
 
template<typename T >
static T * load (TiXmlElement *eObject, Device *device)
 
static TiXmlDocument openDocument (const String &path)
 
static void setEnableRebind (bool flag)
 Sets if rebinding of objects should be allowed (Right now a global setting).
 
- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 

Static Public Attributes

static agxData::ScalarAttributeT< agx::Real > * bottomRadiusAttribute
 
static agxData::ScalarAttributeT< agx::Real > * heightAttribute
 
static agxData::ScalarAttributeT< agx::Real > * topRadiusAttribute
 
- Static Public Attributes inherited from agx::Physics::Geometry::ShapeModel
static agxData::ScalarAttributeT< agxCollide::BoundingAABB > * boundingAABBAttribute
 
static agxData::ScalarAttributeT< agx::Physics::GeometryPtr > * geometryAttribute
 
static agxData::ScalarAttributeT< agx::Bool > * inGroupAttribute
 
static agxData::PointerAttributeT< agxCollide::Shape * > * modelAttribute
 
static agxData::ScalarAttributeT< agx::UInt32 > * modifiedCountAttribute
 
static agxData::ScalarAttributeT< agx::AffineMatrix4x4 > * transformAttribute
 
static agxData::ScalarAttributeT< agx::UInt8 > * typeAttribute
 
- Static Public Attributes inherited from agx::ReferencedModel
static agxData::ScalarAttributeT< agx::SpinMutex > * observerMutexAttribute
 
static agxData::ScalarAttributeT< agx::Vector< agxData::EntityPtr * > > * observersAttribute
 
static agxData::ScalarAttributeT< agx::UInt32 > * referenceCountAttribute
 
- Static Public Attributes inherited from agxData::EntityModel
static ScalarAttributeT< EntityPtr > * instanceAttribute
 

Protected Member Functions

virtual ~ConeModel ()
 
virtual void configure (agx::TiXmlElement *eEntity) override
 
void construct (agx::Physics::Geometry::ConePtr cone)
 
virtual void construct (agxData::EntityPtr instance) override
 
virtual agxData::EntityData * createData (agxData::EntityStorage *storage) override
 
virtual void initAttributeAccessors () override
 
- Protected Member Functions inherited from agx::Physics::Geometry::ShapeModel
virtual ~ShapeModel ()
 
virtual void configure (agx::TiXmlElement *eEntity) override
 
void construct (agx::Physics::Geometry::ShapePtr shape)
 
virtual void construct (agxData::EntityPtr instance) override
 
virtual agxData::EntityData * createData (agxData::EntityStorage *storage) override
 
virtual void initAttributeAccessors () override
 
- Protected Member Functions inherited from agx::ReferencedModel
virtual ~ReferencedModel ()
 
virtual void configure (agx::TiXmlElement *eEntity) override
 
void construct (agx::ReferencedPtr referenced)
 
virtual void construct (agxData::EntityPtr instance) override
 
virtual agxData::EntityData * createData (agxData::EntityStorage *storage) override
 
virtual void initAttributeAccessors () override
 
- Protected Member Functions inherited from agxData::EntityModel
virtual ~EntityModel ()
 
void addChild (EntityModel *child)
 
EntityPtr createInstanceWrapper ()
 
void propagateNewAttribute (Attribute *attribute)
 
void removeChild (EntityModel *child)
 
- Protected Member Functions inherited from agx::Model
virtual ~Model ()
 
- Protected Member Functions inherited from agx::Component
virtual ~Component ()
 
String expandAutoCompletionMatch (const String &query, const StringVector &matchingNames) const
 
void setDevice (Device *device)
 
- Protected Member Functions inherited from agx::Object
virtual ~Object ()
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor.
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Additional Inherited Members

- Public Attributes inherited from agxData::EntityModel
StorageEvent storageCreationEvent
 
- Public Attributes inherited from agx::Component
ObjectEvent addObjectEvent
 
ObjectEvent removeObjectEvent
 
- Static Protected Member Functions inherited from agx::Referenced
static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
 
- Protected Attributes inherited from agx::Model
bool m_isShutdown
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

Abstract description of the data attributes for the Physics.Geometry.Cone entity.

Definition at line 70 of file ConeEntity.h.

Member Typedef Documentation

◆ PtrT

Definition at line 73 of file ConeEntity.h.

Constructor & Destructor Documentation

◆ ConeModel()

agx::Physics::Geometry::ConeModel::ConeModel ( const agx::String &  name = "Cone")

◆ ~ConeModel()

virtual agx::Physics::Geometry::ConeModel::~ConeModel ( )
protectedvirtual

Member Function Documentation

◆ configure()

virtual void agx::Physics::Geometry::ConeModel::configure ( agx::TiXmlElement *  eEntity)
overrideprotectedvirtual

◆ construct() [1/2]

void agx::Physics::Geometry::ConeModel::construct ( agx::Physics::Geometry::ConePtr  cone)
protected

◆ construct() [2/2]

virtual void agx::Physics::Geometry::ConeModel::construct ( agxData::EntityPtr  instance)
overrideprotectedvirtual

◆ createData()

virtual agxData::EntityData * agx::Physics::Geometry::ConeModel::createData ( agxData::EntityStorage *  storage)
overrideprotectedvirtual

◆ createInstance()

static ConePtr agx::Physics::Geometry::ConeModel::createInstance ( )
static

Create and return a pointer to a new instance in the default storage for this entity model.

◆ defaultStorage()

static agxData::EntityStorage * agx::Physics::Geometry::ConeModel::defaultStorage ( )
static
Returns
The default storage for this entity model.

◆ initAttributeAccessors()

virtual void agx::Physics::Geometry::ConeModel::initAttributeAccessors ( )
overrideprotectedvirtual

◆ instance()

static ConeModel * agx::Physics::Geometry::ConeModel::instance ( )
static
Returns
The entity model singleton.

◆ shutdownCleanup()

virtual void agx::Physics::Geometry::ConeModel::shutdownCleanup ( )
overridevirtual

This is part of internal cleanup and should not be called by users.

Reimplemented from agx::Physics::Geometry::ShapeModel.

Member Data Documentation

◆ bottomRadiusAttribute

agxData::ScalarAttributeT< agx::Real >* agx::Physics::Geometry::ConeModel::bottomRadiusAttribute
static

Definition at line 94 of file ConeEntity.h.

◆ heightAttribute

agxData::ScalarAttributeT< agx::Real >* agx::Physics::Geometry::ConeModel::heightAttribute
static

Definition at line 92 of file ConeEntity.h.

◆ topRadiusAttribute

agxData::ScalarAttributeT< agx::Real >* agx::Physics::Geometry::ConeModel::topRadiusAttribute
static

Definition at line 93 of file ConeEntity.h.


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