Name Description Size Coverage
abstract3dcontroller.cpp @brief setRenderer Sets the renderer to be used. isInitialized returns true from this point onwards. @param renderer Renderer to be used. 56361 -
abstract3dcontroller_p.h 15503 -
abstract3drenderer.cpp 87368 -
abstract3drenderer_p.h 13817 -
abstractdeclarativeinterface.cpp 300 -
abstractdeclarativeinterface_p.h 721 -
axisrendercache.cpp 5338 -
axisrendercache_p.h 5008 -
bars3dcontroller.cpp 23870 -
bars3dcontroller_p.h 5016 -
bars3drenderer.cpp 124728 -
bars3drenderer_p.h 6694 -
barseriesrendercache.cpp 615 -
barseriesrendercache_p.h 1369 -
drawer.cpp 13256 -
drawer_p.h 2976 -
meshes -
q3dbars.cpp ! \class Q3DBars \inmodule QtDataVisualization \brief The Q3DBars class provides methods for rendering 3D bar graphs. \since QtDataVisualization 1.0 This class enables developers to render bar graphs in 3D and to view them by rotating the scene freely. Rotation is done by holding down the right mouse button and moving the mouse. Zooming is done by mouse wheel. Selection, if enabled, is done by left mouse button. The scene can be reset to default camera view by clicking mouse wheel. In touch devices rotation is done by tap-and-move, selection by tap-and-hold and zoom by pinch. If no axes are set explicitly to Q3DBars, temporary default axes with no labels are created. These default axes can be modified via axis accessors, but as soon any axis is set explicitly for the orientation, the default axis for that orientation is destroyed. Q3DBars supports more than one series visible at the same time. It is not necessary for all series to have the same amount of rows and columns. Row and column labels are taken from the first added series, unless explicitly defined to row and column axes. \section1 How to construct a minimal Q3DBars graph First, construct an instance of Q3DBars. Since we are running the graph as top level window in this example, we need to clear the \c Qt::FramelessWindowHint flag, which gets set by default: \snippet doc_src_q3dbars_construction.cpp 4 After constructing Q3DBars, you can set the data window by changing the range on the row and column axes. It is not mandatory, as data window will default to showing all of the data in the series. If the amount of data is large, it is usually preferable to show just a portion of it. For the example, let's set the data window to show first five rows and columns: \snippet doc_src_q3dbars_construction.cpp 0 Now Q3DBars is ready to receive data to be rendered. Create a series with one row of 5 values: \snippet doc_src_q3dbars_construction.cpp 1 \note We set the data window to 5 x 5, but we are adding only one row of data. This is ok, the rest of the rows will just be blank. Finally you will need to set it visible: \snippet doc_src_q3dbars_construction.cpp 2 The complete code needed to create and display this graph is: \snippet doc_src_q3dbars_construction.cpp 3 And this is what those few lines of code produce: \image q3dbars-minimal.png {Minimal 3D bar graph with five green bars of varying heights on a grid floor} The scene can be rotated, zoomed into, and a bar can be selected to view its value, but no other interaction is included in this minimal code example. You can learn more by familiarizing yourself with the examples provided, like the \l{Bar Graph}. \sa Q3DScatter, Q3DSurface, {Qt Data Visualization C++ Classes} 14198 -
q3dbars.h 3700 -
q3dbars_p.h 914 -
q3dcamera.cpp ! \class Q3DCamera \inmodule QtDataVisualization \brief Representation of a camera in 3D space. \since QtDataVisualization 1.0 Q3DCamera represents a basic orbit around centerpoint 3D camera that is used when rendering the data visualization. The class offers simple methods for rotating the camera around the origin and setting zoom level. 27594 -
q3dcamera.h 3968 -
q3dcamera_p.h 2790 -
q3dlight.cpp ! \class Q3DLight \inmodule QtDataVisualization \brief Representation of a light source in 3D space. \since QtDataVisualization 1.0 Q3DLight represents a monochrome light source in 3D space. \note Default light has isAutoPosition() \c true. 2431 -
q3dlight.h 868 -
q3dlight_p.h 744 -
q3dobject.cpp ! \class Q3DObject \inmodule QtDataVisualization \brief The Q3DObject class is a simple base class for all the objects in a 3D scene. \since QtDataVisualization 1.0 Contains position information for an object in a 3D scene. The object is considered to be a single point in the coordinate space without dimensions. 2949 -
q3dobject.h 1159 -
q3dobject_p.h 711 -
q3dscatter.cpp ! \class Q3DScatter \inmodule QtDataVisualization \brief The Q3DScatter class provides methods for rendering 3D scatter graphs. \since QtDataVisualization 1.0 This class enables developers to render scatter graphs in 3D and to view them by rotating the scene freely. Rotation is done by holding down the right mouse button and moving the mouse. Zooming is done by mouse wheel. Selection, if enabled, is done by left mouse button. The scene can be reset to default camera view by clicking mouse wheel. In touch devices rotation is done by tap-and-move, selection by tap-and-hold and zoom by pinch. If no axes are set explicitly to Q3DScatter, temporary default axes with no labels are created. These default axes can be modified via axis accessors, but as soon any axis is set explicitly for the orientation, the default axis for that orientation is destroyed. Q3DScatter supports more than one series visible at the same time. \section1 How to construct a minimal Q3DScatter graph First, construct Q3DScatter. Since we are running the graph as top level window in this example, we need to clear the \c Qt::FramelessWindowHint flag, which gets set by default: \snippet doc_src_q3dscatter_construction.cpp 0 Now Q3DScatter is ready to receive data to be rendered. Add one series of 3 QVector3D items: \snippet doc_src_q3dscatter_construction.cpp 1 Finally you will need to set it visible: \snippet doc_src_q3dscatter_construction.cpp 2 The complete code needed to create and display this graph is: \snippet doc_src_q3dscatter_construction.cpp 3 And this is what those few lines of code produce: \image q3dscatter-minimal.png {Minimal 3D scatter graph with three green spheres positioned in a wireframe grid box} The scene can be rotated, zoomed into, and an item can be selected to view its position, but no other interaction is included in this minimal code example. You can learn more by familiarizing yourself with the examples provided, like the \l{Scatter Graph}. \sa Q3DBars, Q3DSurface, {Qt Data Visualization C++ Classes} 8193 -
q3dscatter.h 1803 -
q3dscatter_p.h 944 -
q3dscene.cpp ! \class Q3DScene \inmodule QtDataVisualization \brief Q3DScene class provides description of the 3D scene being visualized. \since QtDataVisualization 1.0 The 3D scene contains a single active camera and a single active light source. Visualized data is assumed to be at a fixed location. The 3D scene also keeps track of the viewport in which visualization rendering is done, the primary subviewport inside the viewport where the main 3D data visualization view resides and the secondary subviewport where the 2D sliced view of the data resides. The subviewports are by default resized by the \a Q3DScene. To override the resize behavior you need to listen to both \l viewportChanged() and \l slicingActiveChanged() signals and recalculate the subviewports accordingly. Also the scene has flag for tracking if the secondary 2D slicing view is currently active or not. \note Not all visualizations support the secondary 2D slicing view. 28089 -
q3dscene.h 3907 -
q3dscene_p.h 3112 -
q3dsurface.cpp ! \class Q3DSurface \inmodule QtDataVisualization \brief The Q3DSurface class provides methods for rendering 3D surface plots. \since QtDataVisualization 1.0 This class enables developers to render 3D surface plots and to view them by rotating the scene freely. The visual properties of the surface such as draw mode and shading can be controlled via QSurface3DSeries. The Q3DSurface supports selection by showing a highlighted ball on the data point where the user has clicked with left mouse button (when default input handler is in use) or selected via QSurface3DSeries. The selection pointer is accompanied with a label which in default case shows the value of the data point and the coordinates of the point. The value range and the label format shown on the axis can be controlled through QValue3DAxis. To rotate the graph, hold down the right mouse button and move the mouse. Zooming is done using mouse wheel. Both assume the default input handler is in use. If no axes are set explicitly to Q3DSurface, temporary default axes with no labels are created. These default axes can be modified via axis accessors, but as soon any axis is set explicitly for the orientation, the default axis for that orientation is destroyed. \section1 How to construct a minimal Q3DSurface graph First, construct Q3DSurface. Since we are running the graph as top level window in this example, we need to clear the \c Qt::FramelessWindowHint flag, which gets set by default: \snippet doc_src_q3dsurface_construction.cpp 0 Now Q3DSurface is ready to receive data to be rendered. Create data elements to receive values: \snippet doc_src_q3dsurface_construction.cpp 1 First feed the data to the row elements and then add their pointers to the data element: \snippet doc_src_q3dsurface_construction.cpp 2 Create a new series and set data to it: \snippet doc_src_q3dsurface_construction.cpp 3 Finally you will need to set it visible: \snippet doc_src_q3dsurface_construction.cpp 4 The complete code needed to create and display this graph is: \snippet doc_src_q3dsurface_construction.cpp 5 And this is what those few lines of code produce: \image q3dsurface-minimal.png {Minimal 3D surface graph showing a green folded ridge surface over a grid floor} The scene can be rotated, zoomed into, and a surface point can be selected to view its position, but no other interaction is included in this minimal code example. You can learn more by familiarizing yourself with the examples provided, like the \l{Surface Graph}. \sa Q3DBars, Q3DScatter, {Qt Data Visualization C++ Classes} 10029 -
q3dsurface.h 2067 -
q3dsurface_p.h 944 -
qabstract3dgraph.cpp ! \class QAbstract3DGraph \inmodule QtDataVisualization \brief The QAbstract3DGraph class provides a window and render loop for graphs. \since QtDataVisualization 1.0 This class subclasses a QWindow and provides render loop for graphs inheriting it. You should not need to use this class directly, but one of its subclasses instead. Anti-aliasing is turned on by default on C++, except in OpenGL ES2 environments, where anti-aliasing is not supported by Qt Data Visualization. To specify non-default anti-aliasing for a graph, give a custom surface format as a constructor parameter. You can use the convenience function \c qDefaultSurfaceFormat() to create the surface format object. \note QAbstract3DGraph sets window flag \c Qt::FramelessWindowHint on by default. If you want to display graph windows as standalone windows with regular window frame, clear this flag after constructing the graph. For example: \code Q3DBars *graphWindow = new Q3DBars; graphWindow->setFlags(graphWindow->flags() ^ Qt::FramelessWindowHint); \endcode \sa Q3DBars, Q3DScatter, Q3DSurface, {Qt Data Visualization C++ Classes} 37545 -
qabstract3dgraph.h 8391 -
qabstract3dgraph_p.h 1521 -
scatter3dcontroller.cpp 16240 -
scatter3dcontroller_p.h 3489 -
scatter3drenderer.cpp 109749 -
scatter3drenderer_p.h 5056 -
scatterseriesrendercache.cpp 995 -
scatterseriesrendercache_p.h 3266 -
selectionpointer.cpp 8981 -
selectionpointer_p.h 2112 -
seriesrendercache.cpp 7104 -
seriesrendercache_p.h 3506 -
shaders -
surface3dcontroller.cpp 20420 -
surface3dcontroller_p.h 3612 -
surface3drenderer.cpp 128855 -
surface3drenderer_p.h 5627 -
surfaceseriesrendercache.cpp 2366 -
surfaceseriesrendercache_p.h 4517 -