VectorFieldRepresentation.h
Go to the documentation of this file.
1 // This file is a part of the OpenSurgSim project.
2 // Copyright 2013, SimQuest Solutions Inc.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 
16 #ifndef SURGSIM_GRAPHICS_VECTORFIELDREPRESENTATION_H
17 #define SURGSIM_GRAPHICS_VECTORFIELDREPRESENTATION_H
18 
21 
22 namespace SurgSim
23 {
24 namespace Graphics
25 {
26 
30 {
31 public:
35  {
36  }
37 
40  {
41  }
42 
45  virtual std::shared_ptr< SurgSim::Graphics::VectorField > getVectorField() const = 0;
46 
49  virtual void setLineWidth(double width) = 0;
52  virtual double getLineWidth() const = 0;
53 
56  virtual void setScale(double scale) = 0;
59  virtual double getScale() const = 0;
60 
63  virtual void setPointSize(double size) = 0;
66  virtual double getPointSize() const = 0;
67 };
68 
69 }; // Graphics
70 }; // SurgSim
71 
72 #endif // SURGSIM_GRAPHICS_VECTORFIELDREPRESENTATION_H
virtual void setPointSize(double size)=0
Sets the size of point indicating the starting of vector.
Definition: DriveElementFromInputBehavior.cpp:27
Graphic representation of a vector field Each point/location, i.e.
Definition: VectorFieldRepresentation.h:29
virtual double getScale() const =0
Gets the scale applied to all vectors.
virtual void setScale(double scale)=0
Sets the scale to be applied to all vectors.
virtual double getLineWidth() const =0
Gets line width.
string(TOUPPER ${DEVICE}DEVICE_UPPER_CASE) option(BUILD_DEVICE_ $
Definition: CMakeLists.txt:35
virtual void setLineWidth(double width)=0
Sets vector line width.
Base graphics representation class, which defines the interface that all graphics representations mus...
Definition: Representation.h:39
VectorFieldRepresentation(const std::string &name)
Constructor.
Definition: VectorFieldRepresentation.h:34
virtual ~VectorFieldRepresentation()
Destructor.
Definition: VectorFieldRepresentation.h:39
virtual double getPointSize() const =0
Gets the size of starting point of a vector.
virtual std::shared_ptr< SurgSim::Graphics::VectorField > getVectorField() const =0
Gets the vector field.