MNE-CPP  0.1.9
A Framework for Electrophysiology
Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DISP3DLIB::Abstract3DTreeItem Class Reference

Provides the basic tree item. More...

#include <abstract3Dtreeitem.h>

Signals

void checkStateChanged (const Qt::CheckState &checkState)
 
- Signals inherited from DISP3DLIB::Renderable3DEntity
void scaleChanged (float scale)
 
void rotXChanged (float rotX)
 
void rotYChanged (float rotY)
 
void rotZChanged (float rotZ)
 
void positionChanged (QVector3D position)
 

Public Member Functions

 Abstract3DTreeItem (QEntity *p3DEntityParent=0, int iType=Data3DTreeModelItemTypes::UnknownItem, const QString &text="")
 
void setData (const QVariant &value, int role=Qt::UserRole+1)
 
int type () const
 
QList< QStandardItem * > findChildren (int type)
 
QList< QStandardItem * > findChildren (const QString &text)
 
Abstract3DTreeItemoperator<< (Abstract3DTreeItem *newItem)
 
Abstract3DTreeItemoperator<< (Abstract3DTreeItem &newItem)
 
void setAlpha (float fAlpha)
 
- Public Member Functions inherited from DISP3DLIB::Renderable3DEntity
 Renderable3DEntity (Qt3DCore::QEntity *parent=0)
 
virtual ~Renderable3DEntity ()
 
virtual void setTransform (const Qt3DCore::QTransform &transform)
 
virtual void setTransform (const FIFFLIB::FiffCoordTrans &transform, bool bApplyInverse=false)
 
virtual void applyTransform (const Qt3DCore::QTransform &transform)
 
virtual void applyTransform (const FIFFLIB::FiffCoordTrans &transform, bool bApplyInverse=false)
 
virtual float scaleValue () const
 
virtual float rotX () const
 
virtual float rotY () const
 
virtual float rotZ () const
 
virtual QVector3D position () const
 
virtual void applyRotX (float rotX)
 
virtual void setRotX (float rotX)
 
virtual void applyRotY (float rotY)
 
virtual void setRotY (float rotY)
 
virtual void applyRotZ (float rotZ)
 
virtual void setRotZ (float rotZ)
 
virtual void applyPosition (const QVector3D &position)
 
virtual void setPosition (const QVector3D &position)
 
virtual void applyScale (float scale)
 
virtual void setScale (float scale)
 
virtual void setVisible (bool state)
 
virtual void setMaterialParameter (const QVariant &data, const QString &sParameterName)
 
virtual QVariant getMaterialParameter (const QString &sParameterName)
 

Static Public Member Functions

static Eigen::MatrixX4f createVertColor (int numVert, const QColor &color=QColor(0, 49, 69))
 

Protected Member Functions

virtual void initItem ()
 
virtual void onCheckStateChanged (const Qt::CheckState &checkState)
 
virtual void onTranslationXChanged (const QVariant &fTransX)
 
virtual void onTranslationYChanged (const QVariant &fTransY)
 
virtual void onTranslationZChanged (const QVariant &fTransZ)
 
virtual void onScaleChanged (const QVariant &fScale)
 
virtual void onColorChanged (const QVariant &color)
 
virtual void onAlphaChanged (const QVariant &fAlpha)
 
- Protected Member Functions inherited from DISP3DLIB::Renderable3DEntity
virtual void setMaterialParameterRecursive (QObject *pObject, const QVariant &data, const QString &sParameterName)
 
virtual QPair< bool, QVariant > getMaterialParameterRecursive (QObject *pObject, const QString &sParameterName)
 

Protected Attributes

int m_iType
 
QPointer< MetaTreeItemm_pItemTransformationOptions
 
QPointer< MetaTreeItemm_pItemAppearanceOptions
 
- Protected Attributes inherited from DISP3DLIB::Renderable3DEntity
QPointer< Qt3DCore::QTransform > m_pTransform
 
float m_fScale
 
float m_fRotX
 
float m_fRotY
 
float m_fRotZ
 
QVector3D m_position
 

Additional Inherited Members

- Public Types inherited from DISP3DLIB::Renderable3DEntity
typedef QSharedPointer< Renderable3DEntitySPtr
 
typedef QSharedPointer< const Renderable3DEntityConstSPtr
 
- Properties inherited from DISP3DLIB::Renderable3DEntity
float scale
 
float rotX
 
float rotY
 
float rotZ
 
QVector3D position
 

Detailed Description

Provides the basic tree item.

Abstract3DTreeItem provides Abstract3DTreeItem provides the basic tree item. This item should be used as a base class for all tree items throughout the disp3D library.

Definition at line 80 of file abstract3Dtreeitem.h.

Inheritance diagram for DISP3DLIB::Abstract3DTreeItem:
Inheritance graph

Constructor & Destructor Documentation

◆ Abstract3DTreeItem()

Abstract3DTreeItem::Abstract3DTreeItem ( QEntity *  p3DEntityParent = 0,
int  iType = Data3DTreeModelItemTypes::UnknownItem,
const QString &  text = "" 
)

Default constructor.

Parameters
[in]p3DEntityParentThe parent 3D entity.
[in]iTypeThe type of the item. See types.h for declaration and definition.
[in]textThe text of this item. This is also by default the displayed name of the item in a view.

Definition at line 62 of file abstract3Dtreeitem.cpp.

Member Function Documentation

◆ checkStateChanged

void DISP3DLIB::Abstract3DTreeItem::checkStateChanged ( const Qt::CheckState &  checkState)
signal

Emit this signal whenever this item's check state changed.

Parameters
[in]checkStateThe current check state.

◆ createVertColor()

Eigen::MatrixX4f Abstract3DTreeItem::createVertColor ( int  numVert,
const QColor &  color = QColor(0,49,69) 
)
static

Creates colors for given color for a number of input vertices.

Parameters
[in]numVertThe number of vertices.
[in]colorThe vertex color information.
Returns
The colors per vertex.

Definition at line 246 of file abstract3Dtreeitem.cpp.

◆ findChildren() [1/2]

QList< QStandardItem * > Abstract3DTreeItem::findChildren ( const QString &  text)

Returns all children of this item based on their text.

Parameters
[in]textThe text of the child items which should be looked for.
Returns
List with all found items.

Definition at line 209 of file abstract3Dtreeitem.cpp.

◆ findChildren() [2/2]

QList< QStandardItem * > Abstract3DTreeItem::findChildren ( int  type)

Returns all children of this item based on their type.

Parameters
[in]typeThe type of the child items which should be looked for.
Returns
List with all found items.

Definition at line 190 of file abstract3Dtreeitem.cpp.

◆ initItem()

void Abstract3DTreeItem::initItem ( )
protectedvirtual

◆ onAlphaChanged()

void Abstract3DTreeItem::onAlphaChanged ( const QVariant &  fAlpha)
protectedvirtual

Call this function whenever the alpha value changed.

Parameters
[in]fAlphaThe new alpha value.

Definition at line 335 of file abstract3Dtreeitem.cpp.

◆ onCheckStateChanged()

void Abstract3DTreeItem::onCheckStateChanged ( const Qt::CheckState &  checkState)
protectedvirtual

Call this function whenever the check box of this item was checked.

Parameters
[in]checkStateThe current checkstate.

Definition at line 272 of file abstract3Dtreeitem.cpp.

◆ onColorChanged()

void Abstract3DTreeItem::onColorChanged ( const QVariant &  color)
protectedvirtual

Call this function whenever the color was changed.

Parameters
[in]colorThe new surface color.

Reimplemented in DISP3DLIB::AbstractMeshTreeItem.

Definition at line 327 of file abstract3Dtreeitem.cpp.

◆ onScaleChanged()

void Abstract3DTreeItem::onScaleChanged ( const QVariant &  fScale)
protectedvirtual

Call this function whenever the the scaling of this item changed.

Parameters
[in]fScaleThe current scale value for all axis.

Definition at line 318 of file abstract3Dtreeitem.cpp.

◆ onTranslationXChanged()

void Abstract3DTreeItem::onTranslationXChanged ( const QVariant &  fTransX)
protectedvirtual

Call this function whenever the the translation x of this item changed.

Parameters
[in]fTransXThe current x translation.

Definition at line 285 of file abstract3Dtreeitem.cpp.

◆ onTranslationYChanged()

void Abstract3DTreeItem::onTranslationYChanged ( const QVariant &  fTransY)
protectedvirtual

Call this function whenever the the translation y of this item changed.

Parameters
[in]fTransYThe current y translation.

Definition at line 296 of file abstract3Dtreeitem.cpp.

◆ onTranslationZChanged()

void Abstract3DTreeItem::onTranslationZChanged ( const QVariant &  fTransZ)
protectedvirtual

Call this function whenever the the translation z of this item changed.

Parameters
[in]fTransZThe current z translation.

Definition at line 307 of file abstract3Dtreeitem.cpp.

◆ operator<<() [1/2]

Abstract3DTreeItem & Abstract3DTreeItem::operator<< ( Abstract3DTreeItem newItem)

Overloaded stream operator to add a child to this item based on a reference.

Parameters
[in]newItemThe new item as a reference.

Definition at line 237 of file abstract3Dtreeitem.cpp.

◆ operator<<() [2/2]

Abstract3DTreeItem & Abstract3DTreeItem::operator<< ( Abstract3DTreeItem newItem)

Overloaded stream operator to add a child to this item based on a pointer.

Parameters
[in]newItemThe new item as a pointer.

Definition at line 228 of file abstract3Dtreeitem.cpp.

◆ setAlpha()

void Abstract3DTreeItem::setAlpha ( float  fAlpha)

Set the alpha value.

Parameters
[in]fAlphaThe new alpha value.

Definition at line 262 of file abstract3Dtreeitem.cpp.

◆ setData()

void Abstract3DTreeItem::setData ( const QVariant &  value,
int  role = Qt::UserRole + 1 
)

QStandardItem functions

Definition at line 169 of file abstract3Dtreeitem.cpp.

Member Data Documentation

◆ m_iType

int DISP3DLIB::Abstract3DTreeItem::m_iType
protected

This item's type.

Definition at line 222 of file abstract3Dtreeitem.h.

◆ m_pItemAppearanceOptions

QPointer<MetaTreeItem> DISP3DLIB::Abstract3DTreeItem::m_pItemAppearanceOptions
protected

The item holding the appearance (color, alpha, etc.) group.

Definition at line 225 of file abstract3Dtreeitem.h.

◆ m_pItemTransformationOptions

QPointer<MetaTreeItem> DISP3DLIB::Abstract3DTreeItem::m_pItemTransformationOptions
protected

The item holding the transfomation (translation, etc.) group.

Definition at line 224 of file abstract3Dtreeitem.h.


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