Workspace 6.21.5
|
#include <Mesh/DataStructures/MeshModelInterface/streamlinedmeshnodesinterface.h>
Public Member Functions | |
StreamlinedMeshNodesInterface () | |
StreamlinedMeshNodesInterface () | |
StreamlinedMeshNodesInterface (const StreamlinedMeshNodesInterface &) | |
NodeHandle | add (const Vector3d &position) override |
void | clear () override |
bool | digestContiguousFloatStateData (const NodeStateHandle &state, std::function< bool(size_type numNodes, size_type componentsPerNode, size_type stride, const double *data)> digestFunc) const override |
bool | digestContiguousIntegerStateData (const NodeStateHandle &state, std::function< bool(size_type numNodes, size_type componentsPerNode, size_type stride, const int_type *data)> digestFunc) const override |
bool | digestContiguousPositionData (std::function< bool(size_type numNodes, size_type stride, const double *data)> digestFunc) const override |
bool | digestContiguousUInt16StateData (const NodeStateHandle &state, std::function< bool(size_type numNodes, size_type componentsPerNode, size_type stride, const quint16 *data)> digestFunc) const override |
bool | digestContiguousUInt8StateData (const NodeStateHandle &state, std::function< bool(size_type numNodes, size_type componentsPerNode, size_type stride, const quint8 *data)> digestFunc) const override |
bool | empty () const override |
iterator | erase (const iterator &position) override |
ContiguousDataAccessType | getContiguousDataAccessType () const override |
Vector3d | getPosition (const NodeHandle &nodeHandle) const override |
bool | getState (const NodeHandle &nodeHandle, const NodeStateHandle &state, double &result) const override |
bool | getState (const NodeHandle &nodeHandle, const NodeStateHandle &state, int_type &result) const override |
bool | getState (const NodeHandle &nodeHandle, const NodeStateHandle &state, quint16 &result) const override |
bool | getState (const NodeHandle &nodeHandle, const NodeStateHandle &state, quint8 &result) const override |
bool | getState (const NodeHandle &nodeHandle, const NodeStateHandle &state, Vector3d &result) const override |
size_type | highestNodeIndex () const override |
bool | isStateTypeSupported (const DataExecution::DataFactory &dataFactory) const override |
bool | load (MeshSerializer &serializer) |
bool | load (MeshSerializer &serializer) override |
StreamlinedMeshNodesInterface & | operator= (const StreamlinedMeshNodesInterface &) |
void | remove (const NodeHandle &nodeHandle) override |
void | reserve (size_type n) override |
bool | save (MeshSerializer &serializer, NodeHandleIndexHash &nodeIds) const |
bool | save (MeshSerializer &serializer, NodeHandleIndexHash &nodeIds) const override |
void | setPosition (const NodeHandle &nodeHandle, const Vector3d &position) override |
bool | setState (const NodeHandle &nodeHandle, const NodeStateHandle &state, const DataExecution::DataObject &value) override |
bool | setState (const NodeHandle &nodeHandle, const NodeStateHandle &state, const Vector3d &value) override |
bool | setState (const NodeHandle &nodeHandle, const NodeStateHandle &state, double value) override |
bool | setState (const NodeHandle &nodeHandle, const NodeStateHandle &state, int_type value) override |
bool | setState (const NodeHandle &nodeHandle, const NodeStateHandle &state, quint16 value) override |
bool | setState (const NodeHandle &nodeHandle, const NodeStateHandle &state, quint8 value) override |
size_type | size () const override |
Public Member Functions inherited from MeshNodesInterface | |
virtual NodeHandle | add (const Vector3d &position)=0 |
const NodeStateHandle & | addState (const QString &name, const DataExecution::DataObject &defaultValue) |
template<typename T > | |
const NodeStateHandle & | addState (const QString &name, const T &defaultValue) |
iterator | begin () |
const_iterator | begin () const |
virtual BoundingBoxMinimal | calculateBoundingBox () const |
virtual bool | canAddState (const DataExecution::DataObject &defaultValue) |
virtual bool | canRemoveState (const NodeStateHandle &state) |
virtual void | clear ()=0 |
virtual bool | digestContiguousFloatStateData (const NodeStateHandle &state, std::function< bool(size_type numNodes, size_type componentsPerNode, size_type stride, const double *data)> digestFunc) const |
virtual bool | digestContiguousIntegerStateData (const NodeStateHandle &state, std::function< bool(size_type numNodes, size_type componentsPerNode, size_type stride, const int_type *data)> digestFunc) const |
virtual bool | digestContiguousPositionData (std::function< bool(size_type numNodes, size_type stride, const double *data)> digestFunc) const |
virtual bool | digestContiguousUInt16StateData (const NodeStateHandle &state, std::function< bool(size_type numNodes, size_type componentsPerNode, size_type stride, const quint16 *data)> digestFunc) const |
virtual bool | digestContiguousUInt8StateData (const NodeStateHandle &state, std::function< bool(size_type numNodes, size_type componentsPerNode, size_type stride, const quint8 *data)> digestFunc) const |
virtual bool | empty () const |
iterator | end () |
const_iterator | end () const |
bool | ensureAllStatesSupported (const NodeStateHandleList &states) |
virtual iterator | erase (const iterator &position)=0 |
NodeStateHandleList | getAllStateHandles () const |
virtual ContiguousDataAccessType | getContiguousDataAccessType () const |
virtual Vector3d | getPosition (const NodeHandle &nodeHandle) const =0 |
bool | getState (const NodeHandle &nodeHandle, const NodeStateHandle &state, DataExecution::DataObject &result) |
bool | getState (const NodeHandle &nodeHandle, const NodeStateHandle &state, DataExecution::DataObject &result) const |
virtual bool | getState (const NodeHandle &nodeHandle, const NodeStateHandle &state, double &result) const |
virtual bool | getState (const NodeHandle &nodeHandle, const NodeStateHandle &state, int_type &result) const |
virtual bool | getState (const NodeHandle &nodeHandle, const NodeStateHandle &state, quint16 &result) const |
virtual bool | getState (const NodeHandle &nodeHandle, const NodeStateHandle &state, quint8 &result) const |
virtual bool | getState (const NodeHandle &nodeHandle, const NodeStateHandle &state, Vector3d &result) const |
const NodeStateHandle & | getStateHandle (const QString &name) const |
bool | hasState (const QString &name) const |
virtual size_t | height () const |
virtual size_type | highestNodeIndex () const =0 |
virtual bool | isDense () const |
virtual bool | isStateTypeSupported (const DataExecution::DataFactory &dataFactory) const =0 |
virtual bool | load (MeshSerializer &serializer) |
virtual void | remove (const NodeHandle &nodeHandle)=0 |
bool | removeAllStates () |
bool | removeState (const NodeStateHandle &state) |
bool | removeState (const QString &name) |
bool | renameState (const QString &from, const QString &to) |
virtual void | reserve (size_type n) |
virtual bool | save (MeshSerializer &serializer, NodeHandleIndexHash &nodeIds) const |
virtual void | setPosition (const NodeHandle &nodeHandle, const Vector3d &position)=0 |
virtual bool | setState (const NodeHandle &nodeHandle, const NodeStateHandle &state, const DataExecution::DataObject &value)=0 |
virtual bool | setState (const NodeHandle &nodeHandle, const NodeStateHandle &state, const Vector3d &value) |
virtual bool | setState (const NodeHandle &nodeHandle, const NodeStateHandle &state, double value) |
virtual bool | setState (const NodeHandle &nodeHandle, const NodeStateHandle &state, int_type value) |
virtual bool | setState (const NodeHandle &nodeHandle, const NodeStateHandle &state, quint16 value) |
virtual bool | setState (const NodeHandle &nodeHandle, const NodeStateHandle &state, quint8 value) |
virtual size_type | size () const =0 |
virtual size_t | width () const |
Additional Inherited Members | |
Public Types inherited from MeshNodesInterface | |
enum | ContiguousDataAccessType { DirectBufferAccess , CopiedBufferAccess } |
The type of access that a particular implementation provides to contiguous data. More... | |
using | int_type = MeshModelInterface::int_type |
using | ItemHandleListType = NodeHandleList |
using | ItemHandleType = NodeHandle |
using | size_type = MeshModelInterface::size_type |
using | StateHandleListType = NodeStateHandleList |
using | StateHandleType = NodeStateHandle |
T | Type of underlying container to be used to store node data. |
|
default |
StreamlinedMeshNodesInterface | ( | const StreamlinedMeshNodesInterface< T > & | other | ) |
|
inline |
|
overridevirtual |
position | The position of the new node being added |
Implements MeshNodesInterface.
|
overrideprotectedvirtual |
name | Name of the state |
defaultValue | A default value of for this state |
Derived classes must implement this method, returning a NodeStateHandle with the index they will use to refer to this state along with the name and default value passed as parameters.
Implements MeshNodesInterface.
|
overrideprotectedvirtual |
Implements MeshNodesInterface.
|
overrideprotectedvirtual |
Reimplemented from MeshNodesInterface.
|
overridevirtual |
Clears all node data. Defined states must be removed separately via removeAllStates.
Implements MeshNodesInterface.
|
overridevirtual |
state | Handle of the state to digest. |
digestFunc | Function that will digest the read-only state data from a contiguous buffer. |
Reimplemented from MeshNodesInterface.
|
overridevirtual |
state | Handle of the state to digest. |
digestFunc | Function that will digest the read-only state data from a contiguous buffer. |
Reimplemented from MeshNodesInterface.
|
overridevirtual |
digestFunc | Function that will digest the read-only position data from a contiguous buffer. |
Reimplemented from MeshNodesInterface.
|
overridevirtual |
state | Handle of the state to digest. |
digestFunc | Function that will digest the read-only state data from a contiguous buffer. |
Reimplemented from MeshNodesInterface.
|
overridevirtual |
state | Handle of the state to digest. |
digestFunc | Function that will digest the read-only state data from a contiguous buffer. |
Reimplemented from MeshNodesInterface.
|
overridevirtual |
Default implmentation simply checks size(), derived classes should override if something more efficient is possible.
Reimplemented from MeshNodesInterface.
|
overrideprotectedvirtual |
Reimplemented from MeshNodesInterface.
|
overridevirtual |
Implements MeshNodesInterface.
|
overridevirtual |
Reimplemented from MeshNodesInterface.
|
inlineoverridevirtual |
nodeHandle | The node we're requesting the position of |
Implements MeshNodesInterface.
|
overridevirtual |
Convenience function for common type that avoids client needing to use a DataObject. This method still uses an internal TypedObject to call the implementations corresponding method unless the implementation overrides this virtual method and handles this type directly.
Reimplemented from MeshNodesInterface.
|
overridevirtual |
Convenience function for common type that avoids client needing to use a DataObject. This method still uses an internal TypedObject to call the implementations corresponding method unless the implementation overrides this virtual method and handles this type directly.
Reimplemented from MeshNodesInterface.
|
overridevirtual |
Convenience function for common type that avoids client needing to use a DataObject. This method still uses an internal TypedObject to call the implementations corresponding method unless the implementation overrides this virtual method and handles this type directly.
Reimplemented from MeshNodesInterface.
|
overridevirtual |
Convenience function for common type that avoids client needing to use a DataObject. This method still uses an internal TypedObject to call the implementations corresponding method unless the implementation overrides this virtual method and handles this type directly.
Reimplemented from MeshNodesInterface.
|
overridevirtual |
Convenience function for common type that avoids client needing to use a DataObject. This method still uses an internal TypedObject to call the implementations corresponding method unless the implementation overrides this virtual method and handles this type directly.
Reimplemented from MeshNodesInterface.
|
overrideprotectedvirtual |
nodeHandle | The node we're requesting the state of |
state | The state we're requesting |
result | A DataObject to store the result in (must be of type state.getDataObject() unless the implementation can convert) |
This method is free to return shared data in result as it is only ever called by the public const getState method which will clone any shared data. As this is the case derived class should be able to implement the non-const getState() pure virtual as a simple call to this method as long as the only non-const thing this method does is return shared data.
Implements MeshNodesInterface.
|
overrideprotectedvirtual |
nodeHandle | The node we're requesting the state of |
state | The state we're requesting |
result | A DataObject to store the result in (must be of type state.getDataObject() unless the implementation can convert) |
Implements MeshNodesInterface.
|
overridevirtual |
Implements MeshNodesInterface.
|
overridevirtual |
dataFactory | The DataFactory for the type of state we're checking support for |
Implements MeshNodesInterface.
|
inlinevirtual |
Reimplemented from MeshNodesInterface.
|
overridevirtual |
Reimplemented from MeshNodesInterface.
StreamlinedMeshNodesInterface< T > & operator= | ( | const StreamlinedMeshNodesInterface< T > & | ) |
|
overridevirtual |
Implements MeshNodesInterface.
|
overrideprotectedvirtual |
Derived classes must implement this method, deleting the state.
Implements MeshNodesInterface.
|
overridevirtual |
Default implementation does nothing
Reimplemented from MeshNodesInterface.
|
inlinevirtual |
Reimplemented from MeshNodesInterface.
|
overridevirtual |
Reimplemented from MeshNodesInterface.
|
overridevirtual |
nodeHandle | The node we're setting the position of |
position | The position to set on the node |
Implements MeshNodesInterface.
|
overridevirtual |
nodeHandle | The node we're setting the state of |
state | The state we're setting |
value | A DataObject containing the data to set (must be of type state.getDataObject() unless the implementation can convert) |
Implements MeshNodesInterface.
|
overridevirtual |
Convenience function for common type that avoids client needing to use a DataObject. This method still uses an internal TypedObject to call the implementations corresponding method unless the implementation overrides this virtual method and handles this type directly.
Reimplemented from MeshNodesInterface.
|
overridevirtual |
Convenience function for common type that avoids client needing to use a DataObject. This method still uses an internal TypedObject to call the implementations corresponding method unless the implementation overrides this virtual method and handles this type directly.
Reimplemented from MeshNodesInterface.
|
overridevirtual |
Convenience function for common type that avoids client needing to use a DataObject. This method still uses an internal TypedObject to call the implementations corresponding method unless the implementation overrides this virtual method and handles this type directly.
Reimplemented from MeshNodesInterface.
|
overridevirtual |
Convenience function for common type that avoids client needing to use a DataObject. This method still uses an internal TypedObject to call the implementations corresponding method unless the implementation overrides this virtual method and handles this type directly.
Reimplemented from MeshNodesInterface.
|
overridevirtual |
Convenience function for common type that avoids client needing to use a DataObject. This method still uses an internal TypedObject to call the implementations corresponding method unless the implementation overrides this virtual method and handles this type directly.
Reimplemented from MeshNodesInterface.
|
overridevirtual |
Implements MeshNodesInterface.