ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
vtkplot2dwidget.cpp
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
// - CloudViewer: www.cloudViewer.org -
3
// ----------------------------------------------------------------------------
4
// Copyright (c) 2018-2024 www.cloudViewer.org
5
// SPDX-License-Identifier: MIT
6
// ----------------------------------------------------------------------------
7
8
#include "
vtkplot2dwidget.h
"
9
10
#include <vtkChartXY.h>
11
#include <vtkContextScene.h>
12
#include <vtkContextView.h>
13
14
#include "
vtkutils.h
"
15
16
namespace
VtkUtils
{
17
class
VtkPlot2DWidgetPrivate {
18
public
:
19
vtkSmartPointer<vtkChartXY>
chart;
20
};
21
22
VtkPlot2DWidget::VtkPlot2DWidget
(QWidget* parent) :
VtkPlotWidget
(parent) {
23
d_ptr =
new
VtkPlot2DWidgetPrivate;
24
}
25
26
VtkPlot2DWidget::~VtkPlot2DWidget
() {
delete
d_ptr; }
27
28
vtkContextItem*
VtkPlot2DWidget::chart
()
const
{
29
vtkInitOnce
(d_ptr->chart);
30
contextView
()->GetScene()->AddItem(d_ptr->chart);
31
return
d_ptr->chart;
32
}
33
34
}
// namespace VtkUtils
VtkUtils::VtkPlot2DWidget::VtkPlot2DWidget
VtkPlot2DWidget(QWidget *parent=nullptr)
Definition:
vtkplot2dwidget.cpp:22
VtkUtils::VtkPlot2DWidget::chart
vtkContextItem * chart() const
Definition:
vtkplot2dwidget.cpp:28
VtkUtils::VtkPlot2DWidget::~VtkPlot2DWidget
~VtkPlot2DWidget()
Definition:
vtkplot2dwidget.cpp:26
VtkUtils::VtkPlotWidget
Definition:
vtkplotwidget.h:35
VtkUtils::VtkPlotWidget::contextView
vtkContextView * contextView() const
Definition:
vtkplotwidget.cpp:54
vtkSmartPointer
Definition:
WidgetMap.h:20
VtkUtils
Definition:
VtkMultiTextureRenderer.cpp:46
VtkUtils::vtkInitOnce
void vtkInitOnce(T **obj)
Definition:
vtkutils.h:44
vtkplot2dwidget.h
vtkutils.h
libs
PCLEngine
VtkUtils
vtkplot2dwidget.cpp
Generated on Tue Feb 3 2026 07:12:29 for ACloudViewer by
1.9.1