anatomist  5.1.2
3D neuroimaging data viewer
MaterialWindow Class Reference

Material aspect (color / transparency) tuning window. More...

#include <anatomist/color/wMaterial.h>

Inheritance diagram for MaterialWindow:
Collaboration diagram for MaterialWindow:

Public Slots

void enableTab (int)
 called by the QTabBar change More...
 
void enableAutoUpdate (bool)
 

Public Member Functions

 MaterialWindow (const std::set< anatomist::AObject * > &, QWidget *parent=0, const char *name=0, Qt::WindowFlags f=Qt::WindowFlags())
 
virtual ~MaterialWindow ()
 
const std::set< anatomist::AObject * > & objects () const
 
const anatomist::MaterialgetMaterial () const
 
void update (const anatomist::Observable *observable, void *arg)
 This method is called whenever the observed object is changed. More...
 
void updateObjects ()
 
void updateInterface ()
 
void runCommand ()
 
- Public Member Functions inherited from anatomist::Observer
virtual ~Observer ()
 

Protected Slots

void valueChanged (int panel, int color, int value)
 
void shininessChanged (int value)
 
void chooseObject ()
 
void objectsChosen (const std::set< anatomist::AObject * > &)
 

Protected Member Functions

virtual void unregisterObservable (anatomist::Observable *)
 Called when an observable is destroyed, only called by Observable: don't use this function directly. More...
 
void drawContents ()
 
QWidget * buildRgbaBox (QWidget *parent, int num)
 internal: draws a RGBA widgets group More...
 
void updatePanel (unsigned panel)
 internal: updates the sliders / labels positions for one RGBA box More...
 
- Protected Member Functions inherited from anatomist::Observer
virtual void cleanupObserver ()
 call this function from inherited classes destructors. More...
 
virtual void registerObservable (Observable *)
 only called by Observable: don't use this function directly More...
 
const std::set< Observable * > & observed () const
 

Protected Attributes

std::set< anatomist::AObject * > _parents
 
anatomist::Material _material
 

Detailed Description

Material aspect (color / transparency) tuning window.

Definition at line 52 of file wMaterial.h.

Constructor & Destructor Documentation

◆ MaterialWindow()

MaterialWindow::MaterialWindow ( const std::set< anatomist::AObject * > &  ,
QWidget *  parent = 0,
const char *  name = 0,
Qt::WindowFlags  f = Qt::WindowFlags() 
)

◆ ~MaterialWindow()

virtual MaterialWindow::~MaterialWindow ( )
virtual

Member Function Documentation

◆ buildRgbaBox()

QWidget* MaterialWindow::buildRgbaBox ( QWidget *  parent,
int  num 
)
protected

internal: draws a RGBA widgets group

◆ chooseObject

void MaterialWindow::chooseObject ( )
protectedslot

◆ drawContents()

void MaterialWindow::drawContents ( )
protected

◆ enableAutoUpdate

void MaterialWindow::enableAutoUpdate ( bool  )
slot

References slots.

◆ enableTab

void MaterialWindow::enableTab ( int  )
slot

called by the QTabBar change

◆ getMaterial()

const anatomist::Material& MaterialWindow::getMaterial ( ) const
inline

Definition at line 62 of file wMaterial.h.

References _material.

◆ objects()

const std::set<anatomist::AObject*>& MaterialWindow::objects ( ) const
inline

Definition at line 61 of file wMaterial.h.

References _parents.

◆ objectsChosen

void MaterialWindow::objectsChosen ( const std::set< anatomist::AObject * > &  )
protectedslot

◆ runCommand()

void MaterialWindow::runCommand ( )

References slots.

◆ shininessChanged

void MaterialWindow::shininessChanged ( int  value)
protectedslot

◆ unregisterObservable()

virtual void MaterialWindow::unregisterObservable ( anatomist::Observable )
protectedvirtual

Called when an observable is destroyed, only called by Observable: don't use this function directly.

Reimplemented from anatomist::Observer.

◆ update()

void MaterialWindow::update ( const anatomist::Observable observable,
void *  arg 
)
virtual

This method is called whenever the observed object is changed.

The programmer calls an observable object's notifyObservers method to have all the object's observers notified of the change.

Parameters
observablethe observable object

Implements anatomist::Observer.

◆ updateInterface()

void MaterialWindow::updateInterface ( )

◆ updateObjects()

void MaterialWindow::updateObjects ( )

◆ updatePanel()

void MaterialWindow::updatePanel ( unsigned  panel)
protected

internal: updates the sliders / labels positions for one RGBA box

◆ valueChanged

void MaterialWindow::valueChanged ( int  panel,
int  color,
int  value 
)
protectedslot

Member Data Documentation

◆ _material

anatomist::Material MaterialWindow::_material
protected

Definition at line 89 of file wMaterial.h.

Referenced by getMaterial().

◆ _parents

std::set<anatomist::AObject *> MaterialWindow::_parents
protected

Definition at line 88 of file wMaterial.h.

Referenced by objects().


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