Skip to main content
Part of Graphics A manager class for 3D visualization of a structure.

Public Types

Public Member Functions

Detailed Description

A manager class for 3D visualization of a structure. The SceneManager contains a Structure, extracts the reference-mesh and adds it as a first scene via addScene. Since there is no data selected in the beginning, this will result in a structure-plot without contour or palette. After the first call of addSceneData(…) contour or palette are added. Qt separation: This class contains no functionality relying on Qt classes. All methods using Qt classes are virtual and have no implementation, calling DYNARDO_LOG_WARN instead. Their implementation is done in SceneManagerQt, part of the sos_qt_extensions module. Class SceneManager is NO QObject, but SceneManagerQt is. Instances of SceneManager or SceneManagerQt are created with application_makeSceneManager(), implemented in the sos_qt_extensions or sos_noqt_extensions module respectively.

Member Typedef Documentation

SceneListenerList

a list of See also SceneListener pointers

Constructor & Destructor Documentation

SceneManager()

Initializes the manager and adds a first scene provided that the database has a reference mesh defined. Adds a first scene without any data -> calls addSene only. Parameters

Member Function Documentation

activeScene()

virtual Returns a const-reference to the currently active scene

activeSceneRef()

virtual Returns a reference to the currently active scene

addScene()

virtual Destructor. Adds a default scene to the scene manager Initializes a new scene without any data and sets its index active. Sets the title to ‘Structure’ and generates a legend displaying some structure related information (i.e. mesh type, number of parts/elements/nodes, …) only. Finally calls on all manager known listeners the …AddScene method.

eraseScene()

deletes a scene Parameters

eraseScenes()

deletes all scenes Parameters

exportTNG()

scene data to slangTNG Parameters

file()

: Render the scene into a QImage Returns a QImage : Render the scene into a file. Parameters

font()

virtual Returns a reference to the font for all text to be shown in the active scene

getActiveScene()

Returns the index of the active scene

getAutoRedraw()

getAutoRedraw set automatic redraw mode Returns automatic redraw mode

getPaletteRange()

virtual Gets minimum and maximum values of palette. Parameters

getPan()

get the current pan values Parameters

getRotation()

get current rotation expressed in angle/axis form Parameters

getValueRange()

Gets minimum and maximum data values. Parameters

getVisibleCoordinates()

get coordinates of all vertices in the active scene Returns Matrix containing the coordinates of size (3,n) in which n is the number of vertices

getVisibleTetCoordinates()

get coordinates of all tet vertices in the active scene Returns Matrix containing the coordinates of size (3,n) in which n is the number of vertices

getZoom()

get current zoom factor Returns current zoom factor

initSlice()

Defines a slicing plane in the active scene, using the body coordinate system. The plane will be defined in Hessian normal form Only points with coordinates satisfying $ax+by+cz+d > 0$ are shown, the rest is suppressed.
Refer to Wolfram: Plane for an explanation of the plane definition

isElementSelected()

isSelected Parameters Returns bool indicating if chosen element is selected

isGraphicsEnabled()

Returns The current graphics enabled state

isGraphicsSlicingEnabled()

Returns The current graphics slicing enabled state

isNodeSelected()

isSelected Parameters Returns bool indicating if chosen node is selected

listPaletteIDs()

virtual Returns an order list of all known palette IDs including user defined ones. Returns A vector of alphabetical ordered strings listing all palettes known by m_palette_manager

rendererInfo()

virtual get the graphics renderer information creates its own openGL context locally, to call glGetString() Returns text formated to print in about dialog

selectedElementIndices()

Returns a vector of indices of all selected elements (if any). The indices refer to the active index mapper

selectedNodeIndices()

Returns a vector of indices of all selected nodes (if any). The indices refer to the active index mapper

selectElement()

select a single element in the active scene. Does not perform an automatic redraw Parameters

selectElements()

selects the given elements Parameters

selectMaximumValues()

Selects max_selectable largest data values of the active quantity among the whole FEM structure in the active scene. Parameters

selectMinimumValues()

Selects max_selectable smallest data values of the active quantity among the whole FEM structure in the active scene. Parameters

selectNode()

select a single node in the active scene. Does not perform an automatic redraw Parameters

selectNodes()

selects the given nodes Parameters

selectRelativeMaximumValues()

Calls selectRelativeMaximumValuesWeak(…). Selects max_selectable local maxima data values of the active quantity among the whole FEM structure in the active scene. Parameters

selectRelativeMaximumValuesStrict()

Selects max_selectable local maxima data values of the active quantity among the whole FEM structure in the active scene Will only select nodes with all adjacent nodes having a SMALLER value. Parameters

selectRelativeMaximumValuesWeak()

Selects max_selectable local maxima data values of the active quantity among the whole FEM structure in the active scene Will only select nodes with all adjacent nodes having a SMALLER OR EQUAL value. Parameters

selectRelativeMinimumValues()

Calls selectRelativeMinimumValuesWeak(…). Selects max_selectable local minima data values of the active quantity among the whole FEM structure in the active scene. Parameters

selectRelativeMinimumValuesStrict()

Selects max_selectable local minima data values of the active quantity among the whole FEM structure in the active scene Will only select nodes with all adjacent nodes having a LARGER value. Parameters

selectRelativeMinimumValuesWeak()

Selects max_selectable local minima data values of the active quantity among the whole FEM structure in the active scene Will only select nodes with all adjacent nodes having a LARGER OR EQUAL value. Parameters

setActiveScene()

sets the active scene Parameters

setAutoRedraw()

setAutoRedraw set automatic redraw mode if scene settings are changed Parameters

setBackgroundBottom()

sets the bottom background color Parameters

setBackgroundTop()

sets the top background color Parameters

setContour()

set single contour of contour plot Parameters

setContourType()

setContourType define the type of contour plot Parameters

setCoordinateAxes()

enable/disable coordinate axes Parameters

setCoordinateAxesLabels()

labels coordinate axes Parameters

setCoordinates()

set coordinates of all vertices in the active scene Parameters

setCoorSystemPosition()

setCoorSystemPosition Parameters

setDrawMissing()

define how to draw missing data Parameters

setFont()

Sets the font for all text to be shown in the active scene. Parameters

setGeometricScaling() [1/2]

defines the scaling factor for geometric variations Parameters

setGeometricScaling() [2/2]

defines the scaling factor for geometric variations Parameters

setGeometricStabilization() [1/2]

enables/disables mesh smoothening for geometric imperfections Parameters

setGeometricStabilization() [2/2]

enables/disables mesh smoothening for geometric imperfections Parameters

setGraphicsEnabled()

Enables or disables graphics. Parameters Returns the previous state
This function can only be called if the database has no mesh.
The intention of this method is to reduce CPU time while loading FEM meshes in SIMULATION mode and other batch applications.

setGraphicsSlicingEnabled()

Enables or disables slicing in graphics (only relevant for volume elements) Parameters Returns the previous state
This function can only be called if the database has no mesh.
The intention of this method is to reduce CPU time while loading FEM meshes and speed up visualization.

setLegend()

set the legend in the active scene Parameters

setLegendPosition()

setLegendPosition Parameters

setMarkPosition()

setMarkPosition Parameters

setMeshFeature()

set mesh features to be drawn Parameters

setPalettePosition()

setPalettePosition Parameters

setPaletteRange() [1/2]

virtual Sets minimum and maximum values of palette according to the algorithm defined by how. Parameters

setPaletteRange() [2/2]

Sets minimum and maximum values of palette. Parameters

setPan()

set the current pan values Parameters

setPerspective()

enable/disable perspective view Parameters

setPointSize()

set the size of points relative to model size Parameters

setRotation()

set current rotation expressed in angle/axis form Parameters

setRulerVisibility()

changes visibility of the ruler Parameters

setScale()

set scale factor Parameters

setSceneData() [1/3]

a convenience function which assigns a constant contour plot to the active scene Parameters

setSceneData() [2/3]

assigns the visible data to the active scene Parameters

setSceneData() [3/3]

changes the data of the input parameters for the currently set field data model and assigns them to the active scene Parameters

setSelection()

virtual Selects all elements of the active Scene within the rectangle defined by x, y, width and height given. Parameters

setSize()

setSize Sets the size of the active scene Parameters

setSlice()

Defines a slicing plane in the active scene, using the body coordinate system. The plane will be defined in Hessian normal form by normalizing the paramters aa, bb, cc, and dd given Only points with coordinates satisfying $ax+by+cz+d > 0$ are shown, the rest is suppressed. Parameters
Refer to Wolfram: Plane for an explanation of the plane definition

setSyncCamera()

defines if the scenes are synchronized in camera positioning Parameters

setTetCoordinates()

set coordinates of all tet vertices in the active scene Parameters

setZoom()

set current zoom factor Parameters

size()

Returns the number of scenes

syncCamera()

virtual Sets the camera and slicing settings of the active scene to all other scenes.
An empty slicing plane means that the slicing plane shall be removed