VTK  9.1.0
vtkScalarBarRepresentation.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkScalarBarRepresentation.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
15
16/*
17 * Copyright 2008 Sandia Corporation.
18 * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
19 * license for use of this work by or on behalf of the
20 * U.S. Government. Redistribution and use in source and binary forms, with
21 * or without modification, are permitted provided that this Notice and any
22 * statement of authorship are reproduced on all copies.
23 */
24
52#ifndef vtkScalarBarRepresentation_h
53#define vtkScalarBarRepresentation_h
54
56#include "vtkInteractionWidgetsModule.h" // For export macro
57
59
60class VTKINTERACTIONWIDGETS_EXPORT vtkScalarBarRepresentation : public vtkBorderRepresentation
61{
62public:
64 void PrintSelf(ostream& os, vtkIndent indent) override;
66
68
71 vtkGetObjectMacro(ScalarBarActor, vtkScalarBarActor);
74
76
79 void BuildRepresentation() override;
80 void WidgetInteraction(double eventPos[2]) override;
81 void GetSize(double size[2]) override
82 {
83 size[0] = 2.0;
84 size[1] = 2.0;
85 }
87
89
94 void SetVisibility(vtkTypeBool) override;
95 void GetActors2D(vtkPropCollection* collection) override;
96 void ReleaseGraphicsResources(vtkWindow* window) override;
97 int RenderOverlay(vtkViewport*) override;
102
104
108 vtkSetMacro(AutoOrient, bool);
109 vtkGetMacro(AutoOrient, bool);
111
113
116 void SetOrientation(int orient);
119
120protected:
123
129
132
133private:
135 void operator=(const vtkScalarBarRepresentation&) = delete;
136};
137
138#endif // vtkScalarBarRepresentation_h
represent a vtkBorderWidget
a simple class to control print indentation
Definition: vtkIndent.h:43
an ordered list of Props
Create a scalar bar with labels.
represent scalar bar for vtkScalarBarWidget
~vtkScalarBarRepresentation() override
void SwapOrientation()
Change horizontal <--> vertical orientation, rotate the corners of the bar to preserve size,...
virtual void SetScalarBarActor(vtkScalarBarActor *)
The prop that is placed in the renderer.
vtkTypeBool GetVisibility() override
These methods are necessary to make this representation behave as a vtkProp.
void BuildRepresentation() override
Satisfy the superclass' API.
int RenderOverlay(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
void PrintSelf(ostream &os, vtkIndent indent) override
Define standard methods.
void GetSize(double size[2]) override
Satisfy the superclass' API.
void SetVisibility(vtkTypeBool) override
These methods are necessary to make this representation behave as a vtkProp.
void ReleaseGraphicsResources(vtkWindow *window) override
These methods are necessary to make this representation behave as a vtkProp.
void WidgetInteraction(double eventPos[2]) override
Satisfy the superclass' API.
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
static vtkScalarBarRepresentation * New()
int GetOrientation()
Get/Set the orientation.
void SetOrientation(int orient)
Get/Set the orientation.
vtkTypeBool HasTranslucentPolygonalGeometry() override
These methods are necessary to make this representation behave as a vtkProp.
void GetActors2D(vtkPropCollection *collection) override
These methods are necessary to make this representation behave as a vtkProp.
int RenderOpaqueGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
abstract specification for Viewports
Definition: vtkViewport.h:56
window superclass for vtkRenderWindow
Definition: vtkWindow.h:45
@ size
Definition: vtkX3D.h:259
int vtkTypeBool
Definition: vtkABI.h:69