Graphics Editor Widget

The Graphics Editor Widget is a control to add, remove, and modify the graphics of a scene.

Graphics editor widget.

Fig. 112 Graphics editor widget.

Settings editor

The settings editor is where each graphic is set up. It contains a number of controls.

  • Subgroup: This drop down menu allows you to select the subgroup of current graphic.

  • Coordinates: This drop down menu allows you to select the coordinate of current graphic.

  • Coord System: This drop down menu allows you to select the coordinate system of current graphic.

  • Boundary Mode: This drop down menu allows you to select the boundary mode of current graphic.

  • Face: This drop down menu allows you to select the face of current graphic.

  • Wireframe: This checkbox allows you to set if the graphic is displayed in a skeletal three-dimensional model in which only lines and vertices are represented.

  • Material: This drop down menu allows you to select material for current graphic.

  • Data field: This drop down menu allows you to select data field for current graphic.

  • Spectrum: This drop down menu allows you to select spectrum for current graphic.

  • Tessellation: This drop down menu allows you to select tessellation for current graphic.

If the graphic is a line:

  • Shape: This drop down menu allows you to select shape for current line graphic.

  • Base size: This text box allows you to set the base size for line graphic, format as number*number.

  • Scale field: This drop down menu allows you to select scale field for current line graphic.

  • Scaling: This text box allows you to set the scaling for line graphic, format as number*number.

If the graphic is a point:

  • Glyph: This drop down menu allows you to select glyph for current point graphic.

  • Base size: This text box allows you to set the base size for point graphic, format as number*number*number.

  • Scale field: This drop down menu allows you to select scale field for current point graphic.

  • Scaling: This text box allows you to set the scaling for point graphic, format as number*number*number.

  • Label field: This drop down menu allows you to select label field for current point graphic.

  • Sampling mode: This drop down menu allows you to select sampling mode for current point graphic.

API

class cmlibs.widgets.graphicseditorwidget.GraphicsEditorWidget(parent=None)
boundarymodeChanged(index)

Change the current state of the boundarymode enumeration chooser

Parameters:

index – The index of boundarymode enumeration after change.

coordinateFieldChanged(index)

An item was selected at index in coordinate field chooser widget

Parameters:

index – index of new item.

dataFieldChanged(index)

An item was selected at index in data field chooser widget

Parameters:

index – index of new item.

densityFieldChanged()

Density field combo box changed

domainChanged(index)

Element domain combo box changed

Parameters:

index – index of new item.

faceChanged(index)

Element face combo box changed

Parameters:

index – index of new item.

getGraphics()

Get the graphics currently in the editor

glyphChanged(index)

An item was selected at index in glyph chooser widget

Parameters:

index – index of new item.

glyphOffsetEntered()

Set glyph offset from text in widget

glyphRepeatModeChanged(index)

Glyph repeat mode combo box changed

Parameters:

index – index of new item.

isovaluesEntered()

Set iso values list from text in widget

labelTextEntered()

Set label text from text in widget

labelTextOffsetEntered()

Set label text offset from text in widget

lineBaseSizeEntered()

Set line base size from text in widget

lineScaleFactorsEntered()

Set line scale factors from text in widget

lineShapeChanged(index)

Element lineShape combo box changed

Parameters:

index – index of new item.

materialChanged(index)

An item was selected at index in material chooser widget

Parameters:

index – index of new item.

numberOfIsovalueRangeChanged(value)

Set iso values list from text in widget

pointBaseSizeEntered()

Set point base size from text in widget

pointScaleFactorsEntered()

Set point scale factors from text in widget

rangeIsovaluesClicked(isChecked)

The range isovalues checkbox was clicked

Parameters:

isChecked – boolean

renderLineWidthEntered()

Set render line width from text in widget

renderPointSizeEntered()

Set render point size from text in widget

sampleLocationEntered()

Set sample location from text in widget

samplingModeChanged(index)

Sampling mode combo box changed

selectModeChanged(index)

Element select mode enum chooser widget changed

Parameters:

index – index of new item.

selectedMaterialChanged(index)

An item was selected at index in selected material chooser widget

Parameters:

index – index of new item.

setGraphics(graphics)

Set the graphics to be edited

Parameters:

graphics – zinc.graphics.

setScene(scene)

Set when scene changes to initialised widgets dependent on scene

Parameters:

scene – zinc.scene

streamlinesColourDataTypeChanged(index)

Element streamlines colour data type combo box changed

Parameters:

index – index of new item.

streamlinesTrackDirectionChanged(index)

Element streamlines track direction combo box changed

Parameters:

index – index of new item.

streamlinesTrackLengthEntered()

Set iso values list from text in widget

subgroupFieldChanged(index)

An item was selected at index in subgroup field chooser widget

Parameters:

index – index of new item.

tessellationChanged(index)

An item was selected at index in tessellation chooser widget

Parameters:

index – index of new item.

tessellationFieldChanged(index)

An item was selected at index in tessellation field chooser widget

Parameters:

index – index of new item.

textureCoordinateFieldChanged(index)

An item was selected at index in texture coordinate field chooser widget

Parameters:

index – index of new item.

wireframeClicked(isChecked)

The wireframe surface render radiobutton was clicked

Parameters:

isChecked – boolean