Workspace 6.21.5
Public Member Functions | List of all members
VectorNodeMapper Class Referenceabstract

Base class defining an interface for mapping a model's nodes to values.

#include <Mesh/DataStructures/vectornodemapper.h>

Inheritance diagram for VectorNodeMapper:
[legend]

Public Member Functions

virtual bool canSerialize () const =0
 
VectorNodeMapperclone () const override=0
 
virtual Application::Memento::DatacreateMementoData (const MeshModelInterface &model) const =0
 
virtual Vector3d getValue (const NodeHandle &node, Application::Memento::Data &mementoData) const =0
 
virtual bool load (const DataExecution::SerializedItem &item)=0
 
void logText (const QString &msg) const
 
virtual bool save (DataExecution::SerializedItem &item) const =0
 
- Public Member Functions inherited from Clonable
virtual ~Clonable ()=default
 
virtual Clonableclone () const =0
 

Member Function Documentation

◆ canSerialize()

virtual bool canSerialize ( ) const
pure virtual

◆ clone()

VectorNodeMapper * clone ( ) const
overridepure virtual
Returns
A clone of this object.
Note
Subclasses would normally return their own type rather than the Clonable type. The C++ language rules allow a more derived type to be returned from a virtual function and the compiler will still treat it as a valid override.

Implements Clonable.

Implemented in VectorNodeStateMapper, and VectorNodeTextureMapper.

◆ createMementoData()

virtual Application::Memento::Data * createMementoData ( const MeshModelInterface model) const
pure virtual
Parameters
modelThe model that will be used for mapping nodes to values.
Returns
A memento object which client code cannot do anything useful with except pass it around. The memento is ultimately only useful to the getValue() function. It holds internal data the mapper will use to perform the required mapping.

Implemented in VectorNodeStateMapper, and VectorNodeTextureMapper.

◆ getValue()

virtual Vector3d getValue ( const NodeHandle node,
Application::Memento::Data mementoData 
) const
pure virtual

◆ load()

virtual bool load ( const DataExecution::SerializedItem item)
pure virtual

◆ logText()

void logText ( const QString &  msg) const
Parameters
msgThe message to log.

This function forwards the msg to the main application log stream.

◆ save()

virtual bool save ( DataExecution::SerializedItem item) const
pure virtual