    

 ## On this page

  

 

 # SceneManager Class Reference

 Last update: 16.07.2025 

A manager class for 3D visualization of a structure. [More...](class_scene_manager.xhtml#details)

## <a name="pub-types"></a>Public Types

typedef std::list&lt; SceneListener \* &gt; [SceneListenerList](class_scene_manager.xhtml#aa3b0cd6ed770783df3ac9e302f5a0bfd) a list of [More...](#aa3b0cd6ed770783df3ac9e302f5a0bfd)  
 ## <a name="pub-methods"></a>Public Member Functions

<a id="a55fb9b977b23b621547efe6d9266c2e4"></a> **activateElementValues** () <a id="a514ee0471e4f805a71945153ff0e2309"></a> **activateNodeValues** () virtual [Scene](class_scene.xhtml) [activeScene](class_scene_manager.xhtml#a933ec67b1fb48fbae1b7297f14b83377) () virtual [Scene](class_scene.xhtml) [activeSceneRef](class_scene_manager.xhtml#a922a65077df578203d04cb2ae0a92629) () virtual [addScene](class_scene_manager.xhtml#a428fd66163cef3883e58a2f41515a6c3) () Destructor. [More...](#a428fd66163cef3883e58a2f41515a6c3)  
 <a id="af4118d97778d34921f99be164489e7fe"></a> [clearSelection](class_scene_manager.xhtml#af4118d97778d34921f99be164489e7fe) () clearSelection unselect all nodes and elements in active scene. Does *not* perform an automatic redraw   
  [eraseScene](class_scene_manager.xhtml#a5bc15e60767959409f53ae11ef620037) (number index) deletes a scene [More...](#a5bc15e60767959409f53ae11ef620037)  
  [eraseScenes](class_scene_manager.xhtml#a2c7b5615ec035363f860fa1f84060db9) (bool all=false) deletes all scenes [More...](#a2c7b5615ec035363f860fa1f84060db9)  
  [exportTNG](class_scene_manager.xhtml#a8dbe08127b637b3781091ce9adb23f36) (string [file](class_scene_manager.xhtml#a6d539fe45f6c81c7836e1f7295a25f02)) export scene data to slangTNG [More...](#a8dbe08127b637b3781091ce9adb23f36)  
 <a id="a570a4182e3658d6f7280b3cc232a7344"></a>virtual **extractMaximumScalarsFromSelectedElements** (bool, string user\_ident="") <a id="a16a298fedabff3a9e767b8c7852ecb42"></a>virtual **extractMaximumScalarsFromSelectedNodes** (bool, string user\_ident="") <a id="a18076e305b125eba4ad31113c29af801"></a>virtual **extractMinimumScalarsFromSelectedElements** (bool, string user\_ident="") <a id="a85cf115d57889b638ebb49910be691ad"></a>virtual **extractMinimumScalarsFromSelectedNodes** (bool, string user\_ident="") <a id="a3df2f7411e771709917b420c733b44a5"></a>virtual **extractScalarsFromSelectedElements** (bool) <a id="a59e4c2cfe3099dbeacc2bcf77db5afa5"></a>virtual **extractScalarsFromSelectedNodes** (bool)  [file](class_scene_manager.xhtml#a6d539fe45f6c81c7836e1f7295a25f02) (string filename) : Render the scene into a QImage [More...](#a6d539fe45f6c81c7836e1f7295a25f02)  
 <a id="a5c96b93569e029e895f49a3cf3a36dd6"></a> **file** (string filename, number width, number height) <a id="a6230c0a8c1d31cf921984317cbfa3aef"></a> [fit](class_scene_manager.xhtml#a6230c0a8c1d31cf921984317cbfa3aef) () Adjust scaling such that the entire structure fills the viewport when viewed from current angle.   
 virtual [font](class_scene_manager.xhtml#a0c20b047e7c89c25e95ad212000a64d0) (QFont font) int [getActiveScene](class_scene_manager.xhtml#a72091f1f477aadf12ed7d72655d199dd) () bool [getAutoRedraw](class_scene_manager.xhtml#a3be486d81152d068143907738a8a06d7) () getAutoRedraw set automatic redraw mode [More...](#a3be486d81152d068143907738a8a06d7)  
 <a id="ad01ff5ed5303bfdfc3f893c0bd743cbf"></a>bool **getHiliteReferenceSet** () <a id="a652c2a92b3b3d8100f782aa21409ae61"></a>float **getIsoSurfaceAlpha** () virtual [getPaletteRange](class_scene_manager.xhtml#ae98294e22da1a4dca1f23c41e15e6323) (number xmin, number xmax) Gets minimum and maximum values of palette. [More...](#ae98294e22da1a4dca1f23c41e15e6323)  
  [getPan](class_scene_manager.xhtml#a7294b1b8f2ec69622fa1fad124726c55) (float x, float y) get the current pan values [More...](#a7294b1b8f2ec69622fa1fad124726c55)  
  [getRotation](class_scene_manager.xhtml#a049f870422441eb05361fdd93df44c7f) (float angle, float x, float y, float z) get current rotation expressed in angle/axis form [More...](#a049f870422441eb05361fdd93df44c7f)  
 <a id="ac3acd66fdc6083581a4598f4edd1566e"></a>std::vector&lt; boost::shared\_ptr&lt; graphics::Scene &gt; &gt; **getScenes** () <a id="a463529fc5f2589372708e416b315efe1"></a>float **getStructureAlpha** ()  [getValueRange](class_scene_manager.xhtml#a8e935e225e0809604a0a816f333a0b33) (number xmin, number xmax) Gets minimum and maximum data values. [More...](#a8e935e225e0809604a0a816f333a0b33)  
 [Matrix](class_matrix.xhtml) [getVisibleCoordinates](class_scene_manager.xhtml#a7521972598ce04727dbf806ac7c4db83) () get coordinates of all vertices in the active scene [More...](#a7521972598ce04727dbf806ac7c4db83)  
 [Matrix](class_matrix.xhtml) [getVisibleTetCoordinates](class_scene_manager.xhtml#a47cbe0cbeac174b3ccfb1913fdf8ef30) () get coordinates of all tet vertices in the active scene [More...](#a47cbe0cbeac174b3ccfb1913fdf8ef30)  
 float [getZoom](class_scene_manager.xhtml#ad59a25d25ca854989abdc81ce4c80f4b) () get current zoom factor [More...](#ad59a25d25ca854989abdc81ce4c80f4b)  
  [initSlice](class_scene_manager.xhtml#acd1504f6a3c038cffa4b004b7f794227) () 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 &gt; 0$ are shown, the rest is suppressed. [More...](#acd1504f6a3c038cffa4b004b7f794227)  
 bool [isElementSelected](class_scene_manager.xhtml#a1da585eaeeb198d66ced3699565766b0) (number part\_idx, number element\_idx) isSelected [More...](#a1da585eaeeb198d66ced3699565766b0)  
 bool [isGraphicsEnabled](class_scene_manager.xhtml#a0ee825f116bbe7229ede8d3e7767a97c) () bool [isGraphicsSlicingEnabled](class_scene_manager.xhtml#a18f3e9cc303d84ff6e1dfaa97bbb3883) () bool [isNodeSelected](class_scene_manager.xhtml#a7f215b949d6a778e50221c39393b2012) (number part\_idx, number node\_idx) isSelected [More...](#a7f215b949d6a778e50221c39393b2012)  
 virtual std::vector&lt; string &gt; [listPaletteIDs](class_scene_manager.xhtml#a6e29794f75e21d9ed039a2403e5001ba) () Returns an order list of all known palette IDs including user defined ones. [More...](#a6e29794f75e21d9ed039a2403e5001ba)  
 <a id="a7b9533aaa4a00f783a8f9cf1a381a63f"></a> [redraw](class_scene_manager.xhtml#a7b9533aaa4a00f783a8f9cf1a381a63f) (bool sync) redraw the active scene   
 <a id="a05abf562d065b7fd4657ade1385c8bca"></a> [removeSlice](class_scene_manager.xhtml#a05abf562d065b7fd4657ade1385c8bca) () Removes the slicing plane of the active scene.   
 virtual string [rendererInfo](class_scene_manager.xhtml#a17f23ce554308def6e946547e508dffa) () get the graphics renderer information creates its own openGL context locally, to call glGetString() [More...](#a17f23ce554308def6e946547e508dffa)  
 <a id="a2aa40a8e8e57d456d3e854172dd4f638"></a> [resetScene](class_scene_manager.xhtml#a2aa40a8e8e57d456d3e854172dd4f638) () applies an empty data set to the active scene (resetting it to structure plot)   
 <a id="aca4663e4ad297095c1c427dd138660f1"></a> [scale](class_scene_manager.xhtml#aca4663e4ad297095c1c427dd138660f1) () Adjust scaling such that the entire structure fits into the viewport when viewed from any angle.   
  [SceneManager](class_scene_manager.xhtml#a8d414be8137b229943717d955417ee80) (boost::shared\_ptr&lt; [Structure](class_structure.xhtml) &gt; dataBase, bool is\_graphics\_enabled=true) Initializes the manager and adds a first scene provided that the database has a reference mesh defined. Adds a first scene without any data -&gt; calls addSene only. [More...](#a8d414be8137b229943717d955417ee80)  
 [Matrix](class_matrix.xhtml) [selectedElementIndices](class_scene_manager.xhtml#af88c8a0e67db1ff2f23a38fde8e9e597) () [Matrix](class_matrix.xhtml) [selectedNodeIndices](class_scene_manager.xhtml#ac5c0f9ec57947a75d8bafb6ce38d714a) ()  [selectElement](class_scene_manager.xhtml#a13c05f539b55985fe980d610883c4204) (number part\_idx, number element\_idx, number value, bool showLabel) select a single element in the active scene. Does *not* perform an automatic redraw [More...](#a13c05f539b55985fe980d610883c4204)  
  [selectElements](class_scene_manager.xhtml#a39a643132d27da3b0e945c39cbe9032f) ([Matrix](class_matrix.xhtml) indices) selects the given elements [More...](#a39a643132d27da3b0e945c39cbe9032f)  
  [selectMaximumValues](class_scene_manager.xhtml#aa4470f2f7d3ce20580e120701c73455d) (bool add\_selection, number max\_selectable) Selects max\_selectable largest data values of the active quantity among the whole FEM structure in the active scene. [More...](#aa4470f2f7d3ce20580e120701c73455d)  
  [selectMinimumValues](class_scene_manager.xhtml#a1bb71f2499c19c102156a39251cc0cf6) (bool add\_selection, number max\_selectable) Selects max\_selectable smallest data values of the active quantity among the whole FEM structure in the active scene. [More...](#a1bb71f2499c19c102156a39251cc0cf6)  
  [selectNode](class_scene_manager.xhtml#a6e8979693f41ceec0214a046462a9ce5) (number part\_idx, number node\_idx, number value, bool showLabel) select a single node in the active scene. Does *not* perform an automatic redraw [More...](#a6e8979693f41ceec0214a046462a9ce5)  
  [selectNodes](class_scene_manager.xhtml#aed8d90a34a77ddb389d3c0547f7a6ab4) ([Matrix](class_matrix.xhtml) indices) selects the given nodes [More...](#aed8d90a34a77ddb389d3c0547f7a6ab4)  
  [selectRelativeMaximumValues](class_scene_manager.xhtml#abb6b0894e25b4846b6bb167fd8c8cbe9) (bool add\_selection, number max\_selectable) Calls selectRelativeMaximumValuesWeak(...). Selects max\_selectable local maxima data values of the active quantity among the whole FEM structure in the active scene. [More...](#abb6b0894e25b4846b6bb167fd8c8cbe9)  
  [selectRelativeMaximumValuesStrict](class_scene_manager.xhtml#abd0a4a8d15e51aba759442af8807d2d6) (bool add\_selection, number max\_selectable) 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. [More...](#abd0a4a8d15e51aba759442af8807d2d6)  
  [selectRelativeMaximumValuesWeak](class_scene_manager.xhtml#a84e32eaaa46f6688f1461bf9e878b7c9) (bool add\_selection, number max\_selectable) 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. [More...](#a84e32eaaa46f6688f1461bf9e878b7c9)  
  [selectRelativeMinimumValues](class_scene_manager.xhtml#af2818b2141eff95a92a5d345c3257cd1) (bool add\_selection, number max\_selectable) Calls selectRelativeMinimumValuesWeak(...). Selects max\_selectable local minima data values of the active quantity among the whole FEM structure in the active scene. [More...](#af2818b2141eff95a92a5d345c3257cd1)  
  [selectRelativeMinimumValuesStrict](class_scene_manager.xhtml#a523346a0f096b9bfa3fc27406968669e) (bool add\_selection, number max\_selectable) 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. [More...](#a523346a0f096b9bfa3fc27406968669e)  
  [selectRelativeMinimumValuesWeak](class_scene_manager.xhtml#a951530ae2d67c5cd87143fb4f508b9cf) (bool add\_selection, number max\_selectable) 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. [More...](#a951530ae2d67c5cd87143fb4f508b9cf)  
  [setActiveScene](class_scene_manager.xhtml#a1adc14ebabf7a6325d3215a96401f416) (number act) sets the active scene [More...](#a1adc14ebabf7a6325d3215a96401f416)  
  [setAutoRedraw](class_scene_manager.xhtml#ab064f09e8186276ca42a6de586d74b08) (bool t) setAutoRedraw set automatic redraw mode if scene settings are changed [More...](#ab064f09e8186276ca42a6de586d74b08)  
  [setBackgroundBottom](class_scene_manager.xhtml#a8f5c4c7e02c082ab691b83ca76d8864f) (unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) sets the bottom background color [More...](#a8f5c4c7e02c082ab691b83ca76d8864f)  
  [setBackgroundTop](class_scene_manager.xhtml#ad167abbd8b83b916d33c6326fb730bcf) (unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) sets the top background color [More...](#ad167abbd8b83b916d33c6326fb730bcf)  
 <a id="a5306f657c8705eb5afba78f6c316dbc0"></a> [setClipBorder](class_scene_manager.xhtml#a5306f657c8705eb5afba78f6c316dbc0) (float border) set clip border rotation   
  [setContour](class_scene_manager.xhtml#a965bacc782aea88a5c88c25b029a12c0) (number c) set single contour of contour plot [More...](#a965bacc782aea88a5c88c25b029a12c0)  
  [setContourType](class_scene_manager.xhtml#a47a78c85c989e936b293e2b27e06e0f9) (string cont="") setContourType define the type of contour plot [More...](#a47a78c85c989e936b293e2b27e06e0f9)  
  [setCoordinateAxes](class_scene_manager.xhtml#ac1a58ea7960696a8ab3214792da855f9) (bool value) enable/disable coordinate axes [More...](#ac1a58ea7960696a8ab3214792da855f9)  
  [setCoordinateAxesLabels](class_scene_manager.xhtml#ad0b92d97141bfb67678abdab74c2b71c) (string x, string y, string z) labels coordinate axes [More...](#ad0b92d97141bfb67678abdab74c2b71c)  
  [setCoordinates](class_scene_manager.xhtml#a78df8d6138ceca808b158b803876d02c) ([Matrix](class_matrix.xhtml) coordinates) set coordinates of all vertices in the active scene [More...](#a78df8d6138ceca808b158b803876d02c)  
  [setCoorSystemPosition](class_scene_manager.xhtml#abca1445f8e8c55da3b3a941e33b2204e) (string pos="") setCoorSystemPosition [More...](#abca1445f8e8c55da3b3a941e33b2204e)  
 <a id="a0dc13f75162097aa006e9e7ca1b9da0c"></a> [setDefaultCamera](class_scene_manager.xhtml#a0dc13f75162097aa006e9e7ca1b9da0c) () set default rotation/zoom/pan   
 <a id="aa4e566a3269e050325441ec3432cd3e9"></a> [setDefaultRotation](class_scene_manager.xhtml#aa4e566a3269e050325441ec3432cd3e9) () set default rotation   
  [setDrawMissing](class_scene_manager.xhtml#aa96e3d9273fb478c393a501b10cdf239) (string how) define how to draw missing data [More...](#aa96e3d9273fb478c393a501b10cdf239)  
  [setFont](class_scene_manager.xhtml#aab96c1acd4894f2b6824eae49d509c29) (string [font](class_scene_manager.xhtml#a0c20b047e7c89c25e95ad212000a64d0), number fontsize) Sets the font for all text to be shown in the active scene. [More...](#aab96c1acd4894f2b6824eae49d509c29)  
  [setGeometricScaling](class_scene_manager.xhtml#a20169cf871cd649f68c5902ae1e4dee9) (number scaling, [Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) defines the scaling factor for geometric variations [More...](#a20169cf871cd649f68c5902ae1e4dee9)  
  [setGeometricScaling](class_scene_manager.xhtml#a2a73be253648821a91cde547abed1e90) (number scaling) defines the scaling factor for geometric variations [More...](#a2a73be253648821a91cde547abed1e90)  
  [setGeometricStabilization](class_scene_manager.xhtml#acd205c533e72d4deeae4f01f37f8632a) (bool enable, [Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) enables/disables mesh smoothening for geometric imperfections [More...](#acd205c533e72d4deeae4f01f37f8632a)  
  [setGeometricStabilization](class_scene_manager.xhtml#ae68cd46cae4d65b27d838b926bad5c80) (bool enable) enables/disables mesh smoothening for geometric imperfections [More...](#ae68cd46cae4d65b27d838b926bad5c80)  
 bool [setGraphicsEnabled](class_scene_manager.xhtml#af4df8b71d8dd4312ce50b9522d1a0018) (bool enabled) Enables or disables graphics. [More...](#af4df8b71d8dd4312ce50b9522d1a0018)  
 bool [setGraphicsSlicingEnabled](class_scene_manager.xhtml#ae8a0a20707a463170eeabec71c67a7ae) (bool enabled) Enables or disables slicing in graphics (only relevant for volume elements) [More...](#ae8a0a20707a463170eeabec71c67a7ae)  
 <a id="ad6e22d0784ec8ed158b0a9914134db5f"></a> **setHiliteReferenceSet** (bool t) <a id="af7b41bc3076c8e3e464d5185e1e4902f"></a> **setIsoSurfaceAlpha** (float [a](group__tmath.xhtml#ga7e205066f67b9e3fd4c8cbd5859e8da3))  [setLegend](class_scene_manager.xhtml#a9e873fbad1329e0aa1a69a1dbbab2e40) (string text) set the legend in the active scene [More...](#a9e873fbad1329e0aa1a69a1dbbab2e40)  
  [setLegendPosition](class_scene_manager.xhtml#a749425bc47b9519f6793ea39ed742977) (string pos="") setLegendPosition [More...](#a749425bc47b9519f6793ea39ed742977)  
  [setMarkPosition](class_scene_manager.xhtml#a8ebff0555f34aa724952f8e557e007ff) (string pos="") setMarkPosition [More...](#a8ebff0555f34aa724952f8e557e007ff)  
  [setMeshFeature](class_scene_manager.xhtml#ad249d4cef881e4001bcc8b739d39a791) (string feat) set mesh features to be drawn [More...](#ad249d4cef881e4001bcc8b739d39a791)  
 <a id="a2a0271f6d12d0129763eb854f08170a7"></a>virtual **setPaletteColoringType** (string palette\_id)  [setPalettePosition](class_scene_manager.xhtml#aa72299ee8a9ddf9e63bd71e6fd5dfeb3) (string pos="") setPalettePosition [More...](#aa72299ee8a9ddf9e63bd71e6fd5dfeb3)  
 virtual [setPaletteRange](class_scene_manager.xhtml#a8350ad1dfe00dc97436b59ec6e8ea7aa) (string how) Sets minimum and maximum values of palette according to the algorithm defined by how. [More...](#a8350ad1dfe00dc97436b59ec6e8ea7aa)  
  [setPaletteRange](class_scene_manager.xhtml#a7b357edfd6bc9d2589a6dbf7ab1aca9a) (number xmin, number xmax) Sets minimum and maximum values of palette. [More...](#a7b357edfd6bc9d2589a6dbf7ab1aca9a)  
  [setPan](class_scene_manager.xhtml#a9d6ddc181b0e414cfef555aba6f7a3f2) (float x, float y) set the current pan values [More...](#a9d6ddc181b0e414cfef555aba6f7a3f2)  
  [setPerspective](class_scene_manager.xhtml#a7aef90b83a24d2a1ea4d8729afc3cfc5) (bool persp) enable/disable perspective view [More...](#a7aef90b83a24d2a1ea4d8729afc3cfc5)  
  [setPointSize](class_scene_manager.xhtml#a6724f50b4207f54aefbc744ef88ec0fd) (float [size](class_scene_manager.xhtml#abcd703e220fe34c4ff8364626470876d)) set the size of points relative to model size [More...](#a6724f50b4207f54aefbc744ef88ec0fd)  
  [setRotation](class_scene_manager.xhtml#a6329128a3b6e90f61aa4f24f46e17ec7) (float angle, float x, float y, float z) set current rotation expressed in angle/axis form [More...](#a6329128a3b6e90f61aa4f24f46e17ec7)  
  [setRulerVisibility](class_scene_manager.xhtml#a57a9674604deb1b4f375df06fa2e0d32) (bool on) changes visibility of the ruler [More...](#a57a9674604deb1b4f375df06fa2e0d32)  
  [setScale](class_scene_manager.xhtml#aaf4097a4a24e5a2172be248d2841a42b) (float z) set scale factor [More...](#aaf4097a4a24e5a2172be248d2841a42b)  
  [setSceneData](class_scene_manager.xhtml#a757e1eda9c70aeefe7764241ec59bde3) ([RenderData::DataType](class_render_data.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6) type, string design, string quantity) a convenience function which assigns a constant contour plot to the active scene [More...](#a757e1eda9c70aeefe7764241ec59bde3)  
  [setSceneData](class_scene_manager.xhtml#aee87ccb88f3fa68588c12cf08ac442c5) ([AllRenderData](class_all_render_data.xhtml) render\_data) assigns the visible data to the active scene [More...](#aee87ccb88f3fa68588c12cf08ac442c5)  
  [setSceneData](class_scene_manager.xhtml#ae204a414ac9bcd86c4b0540daaf040f8) ([Matrix](class_matrix.xhtml) inputs) changes the data of the input parameters for the currently set field data model and assigns them to the active scene [More...](#ae204a414ac9bcd86c4b0540daaf040f8)  
 <a id="a6f7af4dba2de8ab52494d821a1b19361"></a> [setSceneScaleRelative](class_scene_manager.xhtml#a6f7af4dba2de8ab52494d821a1b19361) (float x, float y, float z) set different scaling for all three axes   
 virtual [setSelection](class_scene_manager.xhtml#a52834e727b628c3890cbfe5b3999c66e) (int scene\_widht, int scene\_height, int x, int y, int width, int height, bool add\_selection, number max\_selectable, bool show\_label) Selects all elements of the active [Scene](class_scene.xhtml "A class for 3D visualization of a structure Additionally, it can display palettes and text annotation...") within the rectangle defined by x, y, width and height given. [More...](#a52834e727b628c3890cbfe5b3999c66e)  
 <a id="ad8b5f37ad3f6eaa46dd01df960260957"></a> **setShowInvisibleLabels** (bool t)  [setSize](class_scene_manager.xhtml#a8345f253d0b6278e435c44f19b680083) (number w, number h) setSize Sets the size of the active scene [More...](#a8345f253d0b6278e435c44f19b680083)  
  [setSlice](class_scene_manager.xhtml#a7aad11ffebbfb0b66c12f0a01afa24e4) (float [a](group__tmath.xhtml#ga7e205066f67b9e3fd4c8cbd5859e8da3), float b, float c, float d) 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 $a$, $b$, $c$, and $d$ given Only points with coordinates satisfying $ax+by+cz+d &gt; 0$ are shown, the rest is suppressed. [More...](#a7aad11ffebbfb0b66c12f0a01afa24e4)  
 <a id="a5da521188e89896fe5393383f6977f45"></a> **setStructureAlpha** (float [a](group__tmath.xhtml#ga7e205066f67b9e3fd4c8cbd5859e8da3))  [setSyncCamera](class_scene_manager.xhtml#a554e660f534f1bab2328fff34ea5a40c) (bool sync) defines if the scenes are synchronized in camera positioning [More...](#a554e660f534f1bab2328fff34ea5a40c)  
  [setTetCoordinates](class_scene_manager.xhtml#af6da645e07e19e7656e98d7e1f10ee02) ([Matrix](class_matrix.xhtml) coordinates) set coordinates of all tet vertices in the active scene [More...](#af6da645e07e19e7656e98d7e1f10ee02)  
  [setZoom](class_scene_manager.xhtml#a7abac5cfa30e846fb03429bb4e40dc3c) (float z) set current zoom factor [More...](#a7abac5cfa30e846fb03429bb4e40dc3c)  
 number [size](class_scene_manager.xhtml#abcd703e220fe34c4ff8364626470876d) () <a id="ab88781e860a597acc837e09f80b6b853"></a>bool [syncCamera](class_scene_manager.xhtml#ab88781e860a597acc837e09f80b6b853) () const returns if the camera settings are synchronized for all scenes   
 virtual [syncCamera](class_scene_manager.xhtml#a36172b6f1300b9a30ef0b5ff77d71d3e) () Sets the camera and slicing settings of the active scene to all other scenes. [More...](#a36172b6f1300b9a30ef0b5ff77d71d3e)  
 <a id="a2b8247d234169d15cfec25a40874301a"></a>virtual [syncDeco](class_scene_manager.xhtml#a2b8247d234169d15cfec25a40874301a) () Sets the decoration settings of the current, active view to all other views.   
 <a id="ae3a368c0d3a6251d2e4092ec18704250"></a>virtual [syncPalette](class_scene_manager.xhtml#ae3a368c0d3a6251d2e4092ec18704250) () Sets the palette settings of the active scene to all other scenes.   
 <a id="a14974ed767112ef9dc8dd85f22c35ef4"></a>virtual [syncSelection](class_scene_manager.xhtml#a14974ed767112ef9dc8dd85f22c35ef4) () Mirrors the selection of the current view to all other views.   
 <a id="details" name="details"></a>## Detailed Description

A manager class for 3D visualization of a structure.

The [SceneManager](class_scene_manager.xhtml "A manager class for 3D visualization of a structure. ") contains a [Structure](class_structure.xhtml "The central data structure for SoS. "), 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](class_scene_manager.xhtml "A manager class for 3D visualization of a structure. ") is NO QObject, but SceneManagerQt is. Instances of [SceneManager](class_scene_manager.xhtml "A manager class for 3D visualization of a structure. ") or SceneManagerQt are created with application\_makeSceneManager(), implemented in the sos\_qt\_extensions or sos\_noqt\_extensions module respectively.



## Member Typedef Documentation

<a id="aa3b0cd6ed770783df3ac9e302f5a0bfd"></a>## [◆ ](#aa3b0cd6ed770783df3ac9e302f5a0bfd)SceneListenerList

 typedef std::list&lt;SceneListener\*&gt; [SceneListenerList](class_scene_manager.xhtml#aa3b0cd6ed770783df3ac9e302f5a0bfd)

a list of

See alsoSceneListener pointers 



## Constructor &amp; Destructor Documentation

<a id="a8d414be8137b229943717d955417ee80"></a>## [◆ ](#a8d414be8137b229943717d955417ee80)SceneManager()

 [SceneManager](class_scene_manager.xhtml)  ( boost::shared\_ptr&lt; [Structure](class_structure.xhtml) &gt;  *dataBase*,    bool  *is\_graphics\_enabled* = `true`   ) 

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

Parameters dataBaseThe database is\_graphics\_enabledif true then the graphics will be enabled, else disabled 



## Member Function Documentation

<a id="a933ec67b1fb48fbae1b7297f14b83377"></a>## [◆ ](#a933ec67b1fb48fbae1b7297f14b83377)activeScene()

 virtual [Scene](class_scene.xhtml) activeScene  ( )   virtual 

Returnsa const-reference to the currently active scene 



<a id="a922a65077df578203d04cb2ae0a92629"></a>## [◆ ](#a922a65077df578203d04cb2ae0a92629)activeSceneRef()

 virtual [Scene](class_scene.xhtml) activeSceneRef  ( )   virtual 

Returnsa reference to the currently active scene 



<a id="a428fd66163cef3883e58a2f41515a6c3"></a>## [◆ ](#a428fd66163cef3883e58a2f41515a6c3)addScene()

 virtual 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](class_structure.xhtml "The central data structure for SoS. ")' 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.





<a id="a5bc15e60767959409f53ae11ef620037"></a>## [◆ ](#a5bc15e60767959409f53ae11ef620037)eraseScene()

 eraseScene  ( number  *index*) 

deletes a scene

Parameters indexthe index of the scene to be deleted. 



<a id="a2c7b5615ec035363f860fa1f84060db9"></a>## [◆ ](#a2c7b5615ec035363f860fa1f84060db9)eraseScenes()

 eraseScenes  ( bool  *all* = `false`) 

deletes all scenes

Parameters allif true, then all scenes are deleted, if false: the structural scene (index 0) is kept. 



<a id="a8dbe08127b637b3781091ce9adb23f36"></a>## [◆ ](#a8dbe08127b637b3781091ce9adb23f36)exportTNG()

 exportTNG  ( string  *file*) 

export scene data to slangTNG

Parameters outputfile (txt) 



<a id="a6d539fe45f6c81c7836e1f7295a25f02"></a>## [◆ ](#a6d539fe45f6c81c7836e1f7295a25f02)file()

 file  ( string  *filename*) 

: Render the scene into a QImage

Returnsa QImage : Render the scene into a file. Parameters filenameFile name. File type is determined by its extension (.png, .jpg, etc.) 



<a id="a0c20b047e7c89c25e95ad212000a64d0"></a>## [◆ ](#a0c20b047e7c89c25e95ad212000a64d0)font()

 virtual font  ( QFont  *font*)   virtual 

Returnsa reference to the font for all text to be shown in the active scene 



<a id="a72091f1f477aadf12ed7d72655d199dd"></a>## [◆ ](#a72091f1f477aadf12ed7d72655d199dd)getActiveScene()

 int getActiveScene  ( ) 

Returnsthe index of the active scene 



<a id="a3be486d81152d068143907738a8a06d7"></a>## [◆ ](#a3be486d81152d068143907738a8a06d7)getAutoRedraw()

 bool getAutoRedraw  ( ) 

getAutoRedraw set automatic redraw mode

Returnsautomatic redraw mode 



<a id="ae98294e22da1a4dca1f23c41e15e6323"></a>## [◆ ](#ae98294e22da1a4dca1f23c41e15e6323)getPaletteRange()

 virtual getPaletteRange  ( number  *xmin*,    number  *xmax*   )   virtual 

Gets minimum and maximum values of palette.

Parameters xminminimum value of palette xmaxmaximum value of palette 



<a id="a7294b1b8f2ec69622fa1fad124726c55"></a>## [◆ ](#a7294b1b8f2ec69622fa1fad124726c55)getPan()

 getPan  ( float  *x*,    float  *y*   ) 

get the current pan values

Parameters xx value of pan yy value of pan 



<a id="a049f870422441eb05361fdd93df44c7f"></a>## [◆ ](#a049f870422441eb05361fdd93df44c7f)getRotation()

 getRotation  ( float  *angle*,    float  *x*,    float  *y*,    float  *z*   ) 

get current rotation expressed in angle/axis form

Parameters angleAngle of rotation xx-component of rotation axis yy-component of rotation axis zz-component of rotation axis 



<a id="a8e935e225e0809604a0a816f333a0b33"></a>## [◆ ](#a8e935e225e0809604a0a816f333a0b33)getValueRange()

 getValueRange  ( number  *xmin*,    number  *xmax*   ) 

Gets minimum and maximum data values.

Parameters xminminimum data value xmaxmaximum data value 



<a id="a7521972598ce04727dbf806ac7c4db83"></a>## [◆ ](#a7521972598ce04727dbf806ac7c4db83)getVisibleCoordinates()

 [Matrix](class_matrix.xhtml) getVisibleCoordinates  ( ) 

get coordinates of all vertices in the active scene

Returns[Matrix](class_matrix.xhtml "Standard matrix class. ") containing the coordinates of size (3,n) in which n is the number of vertices 



<a id="a47cbe0cbeac174b3ccfb1913fdf8ef30"></a>## [◆ ](#a47cbe0cbeac174b3ccfb1913fdf8ef30)getVisibleTetCoordinates()

 [Matrix](class_matrix.xhtml) getVisibleTetCoordinates  ( ) 

get coordinates of all tet vertices in the active scene

Returns[Matrix](class_matrix.xhtml "Standard matrix class. ") containing the coordinates of size (3,n) in which n is the number of vertices 



<a id="ad59a25d25ca854989abdc81ce4c80f4b"></a>## [◆ ](#ad59a25d25ca854989abdc81ce4c80f4b)getZoom()

 float getZoom  ( ) 

get current zoom factor

Returnscurrent zoom factor 



<a id="acd1504f6a3c038cffa4b004b7f794227"></a>## [◆ ](#acd1504f6a3c038cffa4b004b7f794227)initSlice()

 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 &gt; 0$ are shown, the rest is suppressed.

NoteRefer to [Wolfram: Plane](http://mathworld.wolfram.com/Plane.html) for an explanation of the plane definition 



<a id="a1da585eaeeb198d66ced3699565766b0"></a>## [◆ ](#a1da585eaeeb198d66ced3699565766b0)isElementSelected()

 bool isElementSelected  ( number  *part\_idx*,    number  *element\_idx*   ) 

isSelected

Parameters part\_idxthe index of the part in FEM kernel element\_idxthe index of the element in part of the FEM kernel Returnsbool indicating if chosen element is selected 



<a id="a0ee825f116bbe7229ede8d3e7767a97c"></a>## [◆ ](#a0ee825f116bbe7229ede8d3e7767a97c)isGraphicsEnabled()

 bool isGraphicsEnabled  ( ) 

ReturnsThe current graphics enabled state 



<a id="a18f3e9cc303d84ff6e1dfaa97bbb3883"></a>## [◆ ](#a18f3e9cc303d84ff6e1dfaa97bbb3883)isGraphicsSlicingEnabled()

 bool isGraphicsSlicingEnabled  ( ) 

ReturnsThe current graphics slicing enabled state 



<a id="a7f215b949d6a778e50221c39393b2012"></a>## [◆ ](#a7f215b949d6a778e50221c39393b2012)isNodeSelected()

 bool isNodeSelected  ( number  *part\_idx*,    number  *node\_idx*   ) 

isSelected

Parameters part\_idxthe index of the part in FEM kernel node\_idxthe index of the node in part of the FEM kernel Returnsbool indicating if chosen node is selected 



<a id="a6e29794f75e21d9ed039a2403e5001ba"></a>## [◆ ](#a6e29794f75e21d9ed039a2403e5001ba)listPaletteIDs()

 virtual std::vector&lt; string &gt; listPaletteIDs  ( )   virtual 

Returns an order list of all known palette IDs including user defined ones.

ReturnsA vector of alphabetical ordered strings listing all palettes known by m\_palette\_manager 



<a id="a17f23ce554308def6e946547e508dffa"></a>## [◆ ](#a17f23ce554308def6e946547e508dffa)rendererInfo()

 virtual string rendererInfo  ( )   virtual 

get the graphics renderer information creates its own openGL context locally, to call glGetString()

Returnstext formated to print in about dialog 



<a id="af88c8a0e67db1ff2f23a38fde8e9e597"></a>## [◆ ](#af88c8a0e67db1ff2f23a38fde8e9e597)selectedElementIndices()

 [Matrix](class_matrix.xhtml) selectedElementIndices  ( ) 

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



<a id="ac5c0f9ec57947a75d8bafb6ce38d714a"></a>## [◆ ](#ac5c0f9ec57947a75d8bafb6ce38d714a)selectedNodeIndices()

 [Matrix](class_matrix.xhtml) selectedNodeIndices  ( ) 

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



<a id="a13c05f539b55985fe980d610883c4204"></a>## [◆ ](#a13c05f539b55985fe980d610883c4204)selectElement()

 selectElement  ( number  *part\_idx*,    number  *element\_idx*,    number  *value*,    bool  *showLabel*   ) 

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

Parameters part\_idxthe index of the part in FEM kernel element\_idxthe index of the element in part of the FEM kernel 



<a id="a39a643132d27da3b0e945c39cbe9032f"></a>## [◆ ](#a39a643132d27da3b0e945c39cbe9032f)selectElements()

 selectElements  ( [Matrix](class_matrix.xhtml)  *indices*) 

selects the given elements

Parameters indicesthe global indices (with respect to index mapper) of the elements to be selected 



<a id="aa4470f2f7d3ce20580e120701c73455d"></a>## [◆ ](#aa4470f2f7d3ce20580e120701c73455d)selectMaximumValues()

 selectMaximumValues  ( bool  *add\_selection*,    number  *max\_selectable*   ) 

Selects max\_selectable largest data values of the active quantity among the whole FEM structure in the active scene.

Parameters add\_selectionTrue if the selection should be added to previously selected data. False otherwise. max\_selectableLimits the maximum amount of automatically selected data on the structure. 



<a id="a1bb71f2499c19c102156a39251cc0cf6"></a>## [◆ ](#a1bb71f2499c19c102156a39251cc0cf6)selectMinimumValues()

 selectMinimumValues  ( bool  *add\_selection*,    number  *max\_selectable*   ) 

Selects max\_selectable smallest data values of the active quantity among the whole FEM structure in the active scene.

Parameters add\_selectionTrue if the selection should be added to previously selected data. False otherwise. max\_selectableLimits the maximum amount of automatically selected data on the structure. 



<a id="a6e8979693f41ceec0214a046462a9ce5"></a>## [◆ ](#a6e8979693f41ceec0214a046462a9ce5)selectNode()

 selectNode  ( number  *part\_idx*,    number  *node\_idx*,    number  *value*,    bool  *showLabel*   ) 

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

Parameters part\_idxthe index of the part in FEM kernel node\_idxthe index of the node in part of the FEM kernel 



<a id="aed8d90a34a77ddb389d3c0547f7a6ab4"></a>## [◆ ](#aed8d90a34a77ddb389d3c0547f7a6ab4)selectNodes()

 selectNodes  ( [Matrix](class_matrix.xhtml)  *indices*) 

selects the given nodes

Parameters indicesthe global indices (with respect to index mapper) of the nodes to be selected 



<a id="abb6b0894e25b4846b6bb167fd8c8cbe9"></a>## [◆ ](#abb6b0894e25b4846b6bb167fd8c8cbe9)selectRelativeMaximumValues()

 selectRelativeMaximumValues  ( bool  *add\_selection*,    number  *max\_selectable*   ) 

Calls selectRelativeMaximumValuesWeak(...). Selects max\_selectable local maxima data values of the active quantity among the whole FEM structure in the active scene.

Parameters add\_selectionTrue if the selection should be added to previously selected data. False otherwise. max\_selectableLimits the maximum amount of automatically selected data on the structure. 



<a id="abd0a4a8d15e51aba759442af8807d2d6"></a>## [◆ ](#abd0a4a8d15e51aba759442af8807d2d6)selectRelativeMaximumValuesStrict()

 selectRelativeMaximumValuesStrict  ( bool  *add\_selection*,    number  *max\_selectable*   ) 

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 add\_selectionTrue if the selection should be added to previously selected data. False otherwise. max\_selectableLimits the maximum amount of automatically selected data on the structure. 



<a id="a84e32eaaa46f6688f1461bf9e878b7c9"></a>## [◆ ](#a84e32eaaa46f6688f1461bf9e878b7c9)selectRelativeMaximumValuesWeak()

 selectRelativeMaximumValuesWeak  ( bool  *add\_selection*,    number  *max\_selectable*   ) 

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 add\_selectionTrue if the selection should be added to previously selected data. False otherwise. max\_selectableLimits the maximum amount of automatically selected data on the structure. 



<a id="af2818b2141eff95a92a5d345c3257cd1"></a>## [◆ ](#af2818b2141eff95a92a5d345c3257cd1)selectRelativeMinimumValues()

 selectRelativeMinimumValues  ( bool  *add\_selection*,    number  *max\_selectable*   ) 

Calls selectRelativeMinimumValuesWeak(...). Selects max\_selectable local minima data values of the active quantity among the whole FEM structure in the active scene.

Parameters add\_selectionTrue if the selection should be added to previously selected data. False otherwise. max\_selectableLimits the maximum amount of automatically selected data on the structure. 



<a id="a523346a0f096b9bfa3fc27406968669e"></a>## [◆ ](#a523346a0f096b9bfa3fc27406968669e)selectRelativeMinimumValuesStrict()

 selectRelativeMinimumValuesStrict  ( bool  *add\_selection*,    number  *max\_selectable*   ) 

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 add\_selectionTrue if the selection should be added to previously selected data. False otherwise. max\_selectableLimits the maximum amount of automatically selected data on the structure. 



<a id="a951530ae2d67c5cd87143fb4f508b9cf"></a>## [◆ ](#a951530ae2d67c5cd87143fb4f508b9cf)selectRelativeMinimumValuesWeak()

 selectRelativeMinimumValuesWeak  ( bool  *add\_selection*,    number  *max\_selectable*   ) 

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 add\_selectionTrue if the selection should be added to previously selected data. False otherwise. max\_selectableLimits the maximum amount of automatically selected data on the structure. 



<a id="a1adc14ebabf7a6325d3215a96401f416"></a>## [◆ ](#a1adc14ebabf7a6325d3215a96401f416)setActiveScene()

 setActiveScene  ( number  *act*) 

sets the active scene

Parameters actthe index of the scene to become active 



<a id="ab064f09e8186276ca42a6de586d74b08"></a>## [◆ ](#ab064f09e8186276ca42a6de586d74b08)setAutoRedraw()

 setAutoRedraw  ( bool  *t*) 

setAutoRedraw set automatic redraw mode if scene settings are changed

Parameters tbool defining if automatic redraw should be done 



<a id="a8f5c4c7e02c082ab691b83ca76d8864f"></a>## [◆ ](#a8f5c4c7e02c082ab691b83ca76d8864f)setBackgroundBottom()

 setBackgroundBottom  ( unsigned char  *red*,    unsigned char  *green*,    unsigned char  *blue*,    unsigned char  *alpha*   ) 

sets the bottom background color

Parameters redred channel (0..255) in RGB color mode greengreen channel (0..255) in RGB color mode blueblue channel (0..255) in RGB color mode alphaalpha channel; 0 = transparent, 1 = opaque 



<a id="ad167abbd8b83b916d33c6326fb730bcf"></a>## [◆ ](#ad167abbd8b83b916d33c6326fb730bcf)setBackgroundTop()

 setBackgroundTop  ( unsigned char  *red*,    unsigned char  *green*,    unsigned char  *blue*,    unsigned char  *alpha*   ) 

sets the top background color

Parameters redred channel (0..255) in RGB color mode greengreen channel (0..255) in RGB color mode blueblue channel (0..255) in RGB color mode alphaalpha channel; 0 = transparent, 1 = opaque 



<a id="a965bacc782aea88a5c88c25b029a12c0"></a>## [◆ ](#a965bacc782aea88a5c88c25b029a12c0)setContour()

 setContour  ( number  *c*) 

set single contour of contour plot

Parameters cnumber defining the 



<a id="a47a78c85c989e936b293e2b27e06e0f9"></a>## [◆ ](#a47a78c85c989e936b293e2b27e06e0f9)setContourType()

 setContourType  ( string  *cont* = `""`) 

setContourType define the type of contour plot

Parameters contstring defining the type of plot. Permissible values are "NONE", "LINE", and "SURFACE" 



<a id="ac1a58ea7960696a8ab3214792da855f9"></a>## [◆ ](#ac1a58ea7960696a8ab3214792da855f9)setCoordinateAxes()

 setCoordinateAxes  ( bool  *value*) 

enable/disable coordinate axes

Parameters axesbool defining if perspective is enabled 



<a id="ad0b92d97141bfb67678abdab74c2b71c"></a>## [◆ ](#ad0b92d97141bfb67678abdab74c2b71c)setCoordinateAxesLabels()

 setCoordinateAxesLabels  ( string  *x*,    string  *y*,    string  *z*   ) 

labels coordinate axes

Parameters xstring labels defining ystring labels defining zstring labels defining 



<a id="a78df8d6138ceca808b158b803876d02c"></a>## [◆ ](#a78df8d6138ceca808b158b803876d02c)setCoordinates()

 setCoordinates  ( [Matrix](class_matrix.xhtml)  *coordinates*) 

set coordinates of all vertices in the active scene

Parameters coordinates[Matrix](class_matrix.xhtml "Standard matrix class. ") containing the coordinates, must have size (3,n) in which n is the number of vertices 



<a id="abca1445f8e8c55da3b3a941e33b2204e"></a>## [◆ ](#abca1445f8e8c55da3b3a941e33b2204e)setCoorSystemPosition()

 setCoorSystemPosition  ( string  *pos* = `""`) 

setCoorSystemPosition

Parameters posdefines the position of the coordinate system, recognized values are "", "NE", "SE", "SW", and "NW" 



<a id="aa96e3d9273fb478c393a501b10cdf239"></a>## [◆ ](#aa96e3d9273fb478c393a501b10cdf239)setDrawMissing()

 setDrawMissing  ( string  *how*) 

define how to draw missing data

Parameters drawdefinition how to draw missing data 



<a id="aab96c1acd4894f2b6824eae49d509c29"></a>## [◆ ](#aab96c1acd4894f2b6824eae49d509c29)setFont()

 setFont  ( string  *font*,    number  *fontsize*   ) 

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

Parameters fontthe font name fontsizethe size of the font in points 



<a id="a20169cf871cd649f68c5902ae1e4dee9"></a>## [◆ ](#a20169cf871cd649f68c5902ae1e4dee9)setGeometricScaling() \[1/2\]

 setGeometricScaling  ( number  *scaling*,    [Structure](class_structure.xhtml)  *database*   ) 

defines the scaling factor for geometric variations

Parameters scalingthe scaling factor databasethe database with mesh 



<a id="a2a73be253648821a91cde547abed1e90"></a>## [◆ ](#a2a73be253648821a91cde547abed1e90)setGeometricScaling() \[2/2\]

 setGeometricScaling  ( number  *scaling*) 

defines the scaling factor for geometric variations

Parameters scalingthe scaling factor 



<a id="acd205c533e72d4deeae4f01f37f8632a"></a>## [◆ ](#acd205c533e72d4deeae4f01f37f8632a)setGeometricStabilization() \[1/2\]

 setGeometricStabilization  ( bool  *enable*,    [Structure](class_structure.xhtml)  *database*   ) 

enables/disables mesh smoothening for geometric imperfections

Parameters enablethe enable state databasethe database with mesh 



<a id="ae68cd46cae4d65b27d838b926bad5c80"></a>## [◆ ](#ae68cd46cae4d65b27d838b926bad5c80)setGeometricStabilization() \[2/2\]

 setGeometricStabilization  ( bool  *enable*) 

enables/disables mesh smoothening for geometric imperfections

Parameters enablethe enable state 



<a id="af4df8b71d8dd4312ce50b9522d1a0018"></a>## [◆ ](#af4df8b71d8dd4312ce50b9522d1a0018)setGraphicsEnabled()

 bool setGraphicsEnabled  ( bool  *enabled*) 

Enables or disables graphics.

Parameters enabledif true then the graphics will be enabled, else disabled Returnsthe previous stateNoteThis 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. 



<a id="ae8a0a20707a463170eeabec71c67a7ae"></a>## [◆ ](#ae8a0a20707a463170eeabec71c67a7ae)setGraphicsSlicingEnabled()

 bool setGraphicsSlicingEnabled  ( bool  *enabled*) 

Enables or disables slicing in graphics (only relevant for volume elements)

Parameters enabledif true then the slicing will be enabled, else disabled Returnsthe previous stateNoteThis 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. 



<a id="a9e873fbad1329e0aa1a69a1dbbab2e40"></a>## [◆ ](#a9e873fbad1329e0aa1a69a1dbbab2e40)setLegend()

 setLegend  ( string  *text*) 

set the legend in the active scene

Parameters textdefines the legend text (rich text coded as html) 



<a id="a749425bc47b9519f6793ea39ed742977"></a>## [◆ ](#a749425bc47b9519f6793ea39ed742977)setLegendPosition()

 setLegendPosition  ( string  *pos* = `""`) 

setLegendPosition

Parameters posdefines the position of the legend, recognized values are "", "NE", "SE", "SW", and "NW" 



<a id="a8ebff0555f34aa724952f8e557e007ff"></a>## [◆ ](#a8ebff0555f34aa724952f8e557e007ff)setMarkPosition()

 setMarkPosition  ( string  *pos* = `""`) 

setMarkPosition

Parameters posdefines the position of the watermark recognized values are "NE", "SE", "SW", and "NW" 



<a id="ad249d4cef881e4001bcc8b739d39a791"></a>## [◆ ](#ad249d4cef881e4001bcc8b739d39a791)setMeshFeature()

 setMeshFeature  ( string  *feat*) 

set mesh features to be drawn

Parameters featdescribes the features. Admissible values are "ALL", "SURFACES", "OUTLINE" 



<a id="aa72299ee8a9ddf9e63bd71e6fd5dfeb3"></a>## [◆ ](#aa72299ee8a9ddf9e63bd71e6fd5dfeb3)setPalettePosition()

 setPalettePosition  ( string  *pos* = `""`) 

setPalettePosition

Parameters posdefines palette position, recognized values are "", "NE", "SE", "SW", and "NW" 



<a id="a8350ad1dfe00dc97436b59ec6e8ea7aa"></a>## [◆ ](#a8350ad1dfe00dc97436b59ec6e8ea7aa)setPaletteRange() \[1/2\]

 virtual setPaletteRange  ( string  *how*)   virtual 

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

Parameters howThe string determining the algorithm for choosing the palette ranges. Accepted values are: - CURRENT
- RANGE





<a id="a7b357edfd6bc9d2589a6dbf7ab1aca9a"></a>## [◆ ](#a7b357edfd6bc9d2589a6dbf7ab1aca9a)setPaletteRange() \[2/2\]

 setPaletteRange  ( number  *xmin*,    number  *xmax*   ) 

Sets minimum and maximum values of palette.

Parameters xminMinimum value of palette xmaxMaximum value of palette 



<a id="a9d6ddc181b0e414cfef555aba6f7a3f2"></a>## [◆ ](#a9d6ddc181b0e414cfef555aba6f7a3f2)setPan()

 setPan  ( float  *x*,    float  *y*   ) 

set the current pan values

Parameters xx value of pan yy value of pan 



<a id="a7aef90b83a24d2a1ea4d8729afc3cfc5"></a>## [◆ ](#a7aef90b83a24d2a1ea4d8729afc3cfc5)setPerspective()

 setPerspective  ( bool  *persp*) 

enable/disable perspective view

Parameters perspbool defining if perspective is enabled 



<a id="a6724f50b4207f54aefbc744ef88ec0fd"></a>## [◆ ](#a6724f50b4207f54aefbc744ef88ec0fd)setPointSize()

 setPointSize  ( float  *size*) 

set the size of points relative to model size

Parameters sizethe size of points 



<a id="a6329128a3b6e90f61aa4f24f46e17ec7"></a>## [◆ ](#a6329128a3b6e90f61aa4f24f46e17ec7)setRotation()

 setRotation  ( float  *angle*,    float  *x*,    float  *y*,    float  *z*   ) 

set current rotation expressed in angle/axis form

Parameters angleAngle of rotation xx-component of rotation axis yy-component of rotation axis zz-component of rotation axis 



<a id="a57a9674604deb1b4f375df06fa2e0d32"></a>## [◆ ](#a57a9674604deb1b4f375df06fa2e0d32)setRulerVisibility()

 setRulerVisibility  ( bool  *on*) 

changes visibility of the ruler

Parameters onif true, the the ruler will be shown 



<a id="aaf4097a4a24e5a2172be248d2841a42b"></a>## [◆ ](#aaf4097a4a24e5a2172be248d2841a42b)setScale()

 setScale  ( float  *z*) 

set scale factor

Parameters scalefactor 



<a id="a757e1eda9c70aeefe7764241ec59bde3"></a>## [◆ ](#a757e1eda9c70aeefe7764241ec59bde3)setSceneData() \[1/3\]

 setSceneData  ( [RenderData::DataType](class_render_data.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6)  *type*,    string  *design*,    string  *quantity*   ) 

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

Parameters typedata type designdesign ident quantityquantity ident 



<a id="aee87ccb88f3fa68588c12cf08ac442c5"></a>## [◆ ](#aee87ccb88f3fa68588c12cf08ac442c5)setSceneData() \[2/3\]

 setSceneData  ( [AllRenderData](class_all_render_data.xhtml)  *render\_data*) 

assigns the visible data to the active scene

Parameters render\_datathe definition of the data to be rendered 



<a id="ae204a414ac9bcd86c4b0540daaf040f8"></a>## [◆ ](#ae204a414ac9bcd86c4b0540daaf040f8)setSceneData() \[3/3\]

 setSceneData  ( [Matrix](class_matrix.xhtml)  *inputs*) 

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

Parameters inputsthe new values of the field data model. 



<a id="a52834e727b628c3890cbfe5b3999c66e"></a>## [◆ ](#a52834e727b628c3890cbfe5b3999c66e)setSelection()

 virtual setSelection  ( int  *scene\_widht*,    int  *scene\_height*,    int  *x*,    int  *y*,    int  *width*,    int  *height*,    bool  *add\_selection*,    number  *max\_selectable*,    bool  *show\_label*   )   virtual 

Selects all elements of the active [Scene](class_scene.xhtml "A class for 3D visualization of a structure Additionally, it can display palettes and text annotation...") within the rectangle defined by x, y, width and height given.

Parameters scene\_widhtThe scene width the rectangle definition is based on. scene\_heightThe scene height the rectangle definition is based on. xThe x coordinate of the top-left rectangle corner wihthin the scene given. yThe y coordinate of the top-left rectangle corner wihthin the scene given. widthThe width of the rectangle corner. heightThe height of the rectangle corner. add\_selectionTrue if the selection should be added to previously selected elements. False otherwise. max\_selectableLimits the maximum amount of automatically selected entities within the rectangle given. show\_labelIf set to true, selected items will be label. Otherwise selected items will be only highlighted by color 



<a id="a8345f253d0b6278e435c44f19b680083"></a>## [◆ ](#a8345f253d0b6278e435c44f19b680083)setSize()

 setSize  ( number  *w*,    number  *h*   ) 

setSize Sets the size of the active scene

Parameters wnew width of the scene hnew height of the scene 



<a id="a7aad11ffebbfb0b66c12f0a01afa24e4"></a>## [◆ ](#a7aad11ffebbfb0b66c12f0a01afa24e4)setSlice()

 setSlice  ( float  *a*,    float  *b*,    float  *c*,    float  *d*   ) 

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 $a$, $b$, $c$, and $d$ given Only points with coordinates satisfying $ax+by+cz+d &gt; 0$ are shown, the rest is suppressed.

Parameters acoeffcient $a$ in the plane equation bcoeffcient $b$ in the plane equation ccoeffcient $c$ in the plane equation dcoeffcient $d$ in the plane equation NoteRefer to [Wolfram: Plane](http://mathworld.wolfram.com/Plane.html) for an explanation of the plane definition 



<a id="a554e660f534f1bab2328fff34ea5a40c"></a>## [◆ ](#a554e660f534f1bab2328fff34ea5a40c)setSyncCamera()

 setSyncCamera  ( bool  *sync*) 

defines if the scenes are synchronized in camera positioning

Parameters syncif true then the camera settings apply to all scenes, else only to the active scene 



<a id="af6da645e07e19e7656e98d7e1f10ee02"></a>## [◆ ](#af6da645e07e19e7656e98d7e1f10ee02)setTetCoordinates()

 setTetCoordinates  ( [Matrix](class_matrix.xhtml)  *coordinates*) 

set coordinates of all tet vertices in the active scene

Parameters coordinates[Matrix](class_matrix.xhtml "Standard matrix class. ") containing the coordinates, must have size (3,n) in which n is the number of vertices 



<a id="a7abac5cfa30e846fb03429bb4e40dc3c"></a>## [◆ ](#a7abac5cfa30e846fb03429bb4e40dc3c)setZoom()

 setZoom  ( float  *z*) 

set current zoom factor

Parameters currentzoom factor 



<a id="abcd703e220fe34c4ff8364626470876d"></a>## [◆ ](#abcd703e220fe34c4ff8364626470876d)size()

 number size  ( ) 

Returnsthe number of scenes 



<a id="a36172b6f1300b9a30ef0b5ff77d71d3e"></a>## [◆ ](#a36172b6f1300b9a30ef0b5ff77d71d3e)syncCamera()

 virtual syncCamera  ( )   virtual 

Sets the camera and slicing settings of the active scene to all other scenes.

NoteAn empty slicing plane means that the slicing plane shall be removed