VTK  9.0.3
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 
43 #ifndef vtkScalarBarRepresentation_h
44 #define vtkScalarBarRepresentation_h
45 
47 #include "vtkInteractionWidgetsModule.h" // For export macro
48 
49 class vtkScalarBarActor;
50 
51 class VTKINTERACTIONWIDGETS_EXPORT vtkScalarBarRepresentation : public vtkBorderRepresentation
52 {
53 public:
55  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
59 
62  vtkGetObjectMacro(ScalarBarActor, vtkScalarBarActor);
65 
67 
70  void BuildRepresentation() override;
71  void WidgetInteraction(double eventPos[2]) override;
72  void GetSize(double size[2]) override
73  {
74  size[0] = 2.0;
75  size[1] = 2.0;
76  }
78 
80 
85  void SetVisibility(vtkTypeBool) override;
86  void GetActors2D(vtkPropCollection* collection) override;
87  void ReleaseGraphicsResources(vtkWindow* window) override;
88  int RenderOverlay(vtkViewport*) override;
93 
95 
99  vtkSetMacro(AutoOrient, bool);
100  vtkGetMacro(AutoOrient, bool);
102 
104 
107  void SetOrientation(int orient);
110 
111 protected:
114 
120 
123 
124 private:
126  void operator=(const vtkScalarBarRepresentation&) = delete;
127 };
128 
129 #endif // vtkScalarBarRepresentation_h
represent a vtkBorderWidget
a simple class to control print indentation
Definition: vtkIndent.h:34
an ordered list of Props
Create a scalar bar with labels.
represent scalar bar for vtkScalarBarWidget
~vtkScalarBarRepresentation() override
static vtkScalarBarRepresentation * New()
void SwapOrientation()
Change horizontal <--> vertical orientation, rotate the corners of the bar to preserve size,...
virtual void SetScalarBarActor(vtkScalarBarActor *)
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
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GetSize(double size[2]) override
void SetVisibility(vtkTypeBool) override
Set/Get visibility of this vtkProp.
void ReleaseGraphicsResources(vtkWindow *window) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
void WidgetInteraction(double eventPos[2]) override
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
void SetOrientation(int orient)
Get/Set the orientation.
vtkTypeBool HasTranslucentPolygonalGeometry() override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void GetActors2D(vtkPropCollection *collection) override
These methods are necessary to make this representation behave as a vtkProp.
int RenderOpaqueGeometry(vtkViewport *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
abstract specification for Viewports
Definition: vtkViewport.h:45
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
@ size
Definition: vtkX3D.h:259
int vtkTypeBool
Definition: vtkABI.h:69