ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
vtkScalarBarWidgetCustom.h
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 #pragma once
9 
10 #include "qPCL.h"
11 #include "vtkScalarBarRepresentation.h"
12 #include "vtkScalarBarWidget.h"
13 
14 class QPCL_ENGINE_LIB_API vtkScalarBarWidgetCustom : public vtkScalarBarWidget {
15 public:
18  void PrintSelf(ostream& os, vtkIndent indent) override;
19 
25  virtual void SetRepresentation(vtkScalarBarRepresentation* rep) override;
26 
30  vtkScalarBarRepresentation* GetScalarBarRepresentation() {
31  return reinterpret_cast<vtkScalarBarRepresentation*>(
32  this->GetRepresentation());
33  }
34 
36 
39  virtual void SetScalarBarActor(vtkScalarBarActor* actor) override;
40  virtual vtkScalarBarActor* GetScalarBarActor() override;
41 
45  void CreateDefaultRepresentation() override;
46 
47  void CreateDefaultScalarBarActor();
48 
49 protected:
52 
53 private:
55  void operator=(const vtkScalarBarWidgetCustom&) = delete;
56 };
~vtkScalarBarWidgetCustom() override
static vtkScalarBarWidgetCustom * New()
vtkTypeMacro(vtkScalarBarWidgetCustom, vtkBorderWidget)
vtkScalarBarRepresentation * GetScalarBarRepresentation()
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15