Commit 97e3a36c authored by Ken Martin's avatar Ken Martin
Browse files

ENH mods to Position2

parent 42120ae0
......@@ -503,3 +503,22 @@ void vtkScalarBarActor::PrintSelf(ostream& os, vtkIndent indent)
os << indent << "Shadow: " << (this->Shadow ? "On\n" : "Off\n");
os << indent << "Label Format: " << this->LabelFormat << "\n";
}
vtkCoordinate *vtkScalarBarActor::GetPosition2Coordinate()
{
vtkDebugMacro(<< this->GetClassName() << " (" << this << "): returning Position2Coordinate address " << this->Position2Coordinate );
return this->Position2Coordinate;
}
void vtkScalarBarActor::SetPosition2(float x[2])
{
this->SetPosition2(x[0],x[1]);
}
void vtkScalarBarActor::SetPosition2(float x, float y)
{
this->Position2Coordinate->SetCoordinateSystem(VTK_VIEWPORT);
this->Position2Coordinate->SetValue(x,y);
}
float *vtkScalarBarActor::GetPosition2()
{
return this->Position2Coordinate->GetValue();
}
......@@ -99,7 +99,10 @@ public:
// Access the Position2 instance variable. This variable controls
// the upper right corner of the scalarbar. It is by default
// relative to Position1 and in Normalized Viewport coordinates.
vtkViewportCoordinateMacro(Position2);
void SetPosition2(float,float);
void SetPosition2(float x[2]);
vtkCoordinate *GetPosition2Coordinate();
float *GetPosition2();
// Description:
// Draw the scalar bar and annotation text to the screen.
......
......@@ -61,6 +61,7 @@ vtkStructuredGridGeometryFilter GetExtent 301 6
vtkStructuredGrid GetPoint 301 3
vtkStructuredPointsGeometryFilter GetExtent 301 6
vtkScalars GetRange 301 2
vtkScalarBarActor GetPosition2 301 2
vtkStructuredData GetDimensions 304 3
vtkStructuredPoints GetPoint 301 3
vtkStreamer GetStartPosition 301 3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment