Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::ModifyRepresentationDialog Class Reference
[QT Dialogs]

Dialog for coloring of surfaces The surfaces can be colored by a given color, or from the values, contained in a RegularData3D grid. More...

#include <modifyRepresentationDialog.h>

Inheritance diagram for VIEW::ModifyRepresentationDialog:

VIEW::ModularWidget Embeddable VIEW::ConnectionObject List of all members.

Public Slots

void applyPressed ()
void cancelPressed ()
void maxPressed ()
void midPressed ()
void minPressed ()
void minMinPressed ()
void maxMaxPressed ()
void tabChanged ()
void autoScale ()
void choosePressed ()
void gridSelected ()
void show ()
void applySplit ()

Public Member Functions

 ModifyRepresentationDialog (QWidget *parent=0, const char *name="ModifyRepresentationDialog", bool modal=FALSE, Qt::WFlags fl=0)
virtual void onNotify (Message *message) throw ()
 Message handling method.
void setRepresentation (Representation *rep) throw ()
void setGrid (RegularData3D *grid) throw ()
void setMinValue (float value)
void setMaxValue (float value)
void setMidValue (float value)
void setSplitRadius (float distance)
void setMode (Position pos)

Protected Types

typedef HashGrid3< const Atom * > AtomGrid
typedef HashGridBox3< const
Atom * > 
AtomBox

Protected Slots

void gridTransparencyChanged ()
void customColorTransparencyChanged ()
void changeDrawingModeTransparencyChanged ()
void splitMethodChanged ()
void normalizationChanged ()

Protected Member Functions

 ModifyRepresentationDialog (const ModifyRepresentationDialog &dialog)
void colorByCustomColor_ ()
bool colorByGrid_ ()
bool insertGrid_ (RegularData3D &grid, const String &name)
void removeGrid_ (RegularData3D &grid)
void setColor_ (ColorRGBA &color, const QLabel *label, const QSpinBox *box)
void getColor_ (const ColorRGBA &color, QLabel *label, QSpinBox *box)
void invalidateGrid_ () throw ()
void invalidateMesh_ () throw ()
void changeDrawingMode_ ()
void checkApplyButton_ ()
void calculateIncludedVertices_ (vector< bool > &include_vertex, const Mesh &org_mesh, HashSet< const Composite * > &roots)
bool checkInclude_ (const AtomGrid &atom_grid, const Vector3 &point) const

Protected Attributes

RegularData3Dgrid_
float min_value_
float mid_value_
float max_value_
float square_distance_
ColorRGBA selected_color
ColorRGBA min_min_color
ColorRGBA min_color
ColorRGBA mid_color
ColorRGBA max_color
ColorRGBA max_max_color
Representationrep_
List< RegularData3D * > grid_list_
vector< Vector3vertices_

Detailed Description

Dialog for coloring of surfaces The surfaces can be colored by a given color, or from the values, contained in a RegularData3D grid.

You can also set the transparency of the surface.


Member Function Documentation

virtual void VIEW::ModifyRepresentationDialog::onNotify Message message  )  throw () [virtual]
 

Message handling method.

This method handles messages sent to this connectionObject. If a certain message should be processed for this connectionObject this method must be overridden. With the help of the RTTI methods one can easily determine if an incoming message is relevant for this connectionObject. See Message for further information concerning messages.

Parameters:
message a pointer to a message. Do not delete the message in this method.

Reimplemented from VIEW::ConnectionObject.