MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Public Member Functions | List of all members
DISP3DLIB::GeometryMultiplier Class Reference

Instaced based renderer. More...

#include <geometrymultiplier.h>

Public Types

typedef QSharedPointer< GeometryMultiplierSPtr
 
typedef QSharedPointer< const GeometryMultiplierConstSPtr
 

Public Member Functions

 GeometryMultiplier (QSharedPointer< QT_COMPATIBILITY_3D::QGeometry > tGeometry, Qt3DCore::QNode *tParent=nullptr)
 
 GeometryMultiplier (const GeometryMultiplier &other)=delete
 
GeometryMultiplieroperator= (const GeometryMultiplier &other)=delete
 
 ~GeometryMultiplier ()
 
void setTransforms (const QVector< QMatrix4x4 > &tInstanceTansform)
 
void setColors (const QVector< QColor > &tInstanceColors)
 

Detailed Description

Instaced based renderer.

This classes uses instanced rendering to draw the same Gemometry multiple at multiple positions. For example it can be used with QSphereGeometry

Definition at line 99 of file geometrymultiplier.h.

Inheritance diagram for DISP3DLIB::GeometryMultiplier:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for GeometryMultiplier.

Definition at line 105 of file geometrymultiplier.h.

◆ SPtr

Shared pointer type for GeometryMultiplier.

Definition at line 104 of file geometrymultiplier.h.

Constructor & Destructor Documentation

◆ GeometryMultiplier() [1/2]

GeometryMultiplier::GeometryMultiplier ( QSharedPointer< QT_COMPATIBILITY_3D::QGeometry >  tGeometry,
Qt3DCore::QNode *  tParent = nullptr 
)
explicit

Constructs a GeometryMultiplier object.

Definition at line 71 of file geometrymultiplier.cpp.

◆ GeometryMultiplier() [2/2]

DISP3DLIB::GeometryMultiplier::GeometryMultiplier ( const GeometryMultiplier other)
delete

Copy Constructor disabled

◆ ~GeometryMultiplier()

GeometryMultiplier::~GeometryMultiplier ( )

Destructor

Definition at line 85 of file geometrymultiplier.cpp.

Member Function Documentation

◆ operator=()

GeometryMultiplier& DISP3DLIB::GeometryMultiplier::operator= ( const GeometryMultiplier other)
delete

Copy operator disabled

◆ setColors()

void GeometryMultiplier::setColors ( const QVector< QColor > &  tInstanceColors)

Sets the color for each instance of the geometry.

Parameters
[in]tInstanceColorsColor of the geometry;.

Definition at line 106 of file geometrymultiplier.cpp.

◆ setTransforms()

void GeometryMultiplier::setTransforms ( const QVector< QMatrix4x4 > &  tInstanceTansform)

Sets the transformation matrix for each instance of the geometry. It can be used to translate, scale and rotate each instance individually.

Parameters
[in]tInstanceTansformTransformation matrix.

Definition at line 96 of file geometrymultiplier.cpp.


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