2016-02-09 13:59:26 +00:00
|
|
|
//============================================================================
|
|
|
|
// Copyright (c) Kitware, Inc.
|
|
|
|
// All rights reserved.
|
|
|
|
// See LICENSE.txt for details.
|
|
|
|
// This software is distributed WITHOUT ANY WARRANTY; without even
|
|
|
|
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
// PURPOSE. See the above copyright notice for more information.
|
|
|
|
//
|
|
|
|
// Copyright 2015 Sandia Corporation.
|
|
|
|
// Copyright 2015 UT-Battelle, LLC.
|
|
|
|
// Copyright 2015 Los Alamos National Security.
|
|
|
|
//
|
|
|
|
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
|
|
|
|
// the U.S. Government retains certain rights in this software.
|
|
|
|
//
|
|
|
|
// Under the terms of Contract DE-AC52-06NA25396 with Los Alamos National
|
|
|
|
// Laboratory (LANL), the U.S. Government retains certain rights in
|
|
|
|
// this software.
|
|
|
|
//============================================================================
|
|
|
|
#ifndef vtk_m_rendering_Window_h
|
|
|
|
#define vtk_m_rendering_Window_h
|
|
|
|
|
|
|
|
#include <vtkm/cont/DataSet.h>
|
2016-04-15 19:24:23 +00:00
|
|
|
#include <vtkm/rendering/BoundingBoxAnnotation.h>
|
2016-04-19 21:04:00 +00:00
|
|
|
#include <vtkm/rendering/AxisAnnotation3D.h>
|
2016-05-09 20:32:27 +00:00
|
|
|
#include <vtkm/rendering/AxisAnnotation2D.h>
|
2016-06-02 19:04:01 +00:00
|
|
|
#include <vtkm/rendering/Camera.h>
|
2016-05-24 20:34:47 +00:00
|
|
|
#include <vtkm/rendering/Color.h>
|
2016-05-18 19:29:50 +00:00
|
|
|
#include <vtkm/rendering/ColorBarAnnotation.h>
|
2016-05-20 21:57:56 +00:00
|
|
|
#include <vtkm/rendering/TextAnnotation.h>
|
2016-05-24 20:34:47 +00:00
|
|
|
#include <vtkm/rendering/Scene.h>
|
2016-02-09 13:59:26 +00:00
|
|
|
|
|
|
|
namespace vtkm {
|
|
|
|
namespace rendering {
|
|
|
|
|
2016-06-02 19:41:14 +00:00
|
|
|
template<typename MapperType,
|
2016-05-19 14:13:04 +00:00
|
|
|
typename SurfaceType,
|
|
|
|
typename WorldAnnotatorType>
|
2016-04-18 20:42:59 +00:00
|
|
|
class Window
|
|
|
|
{
|
|
|
|
public:
|
2016-06-02 19:41:14 +00:00
|
|
|
MapperType Mapper;
|
2016-05-24 20:34:47 +00:00
|
|
|
SurfaceType Surface;
|
2016-06-02 19:04:01 +00:00
|
|
|
vtkm::rendering::Camera Camera;
|
2016-05-24 20:34:47 +00:00
|
|
|
Color BackgroundColor;
|
|
|
|
WorldAnnotatorType WorldAnnotator;
|
|
|
|
|
2016-06-02 19:41:14 +00:00
|
|
|
Window(const MapperType &mapper,
|
2016-05-24 20:34:47 +00:00
|
|
|
const SurfaceType &surface,
|
2016-06-02 19:04:01 +00:00
|
|
|
const vtkm::rendering::Camera &camera,
|
2016-05-24 20:34:47 +00:00
|
|
|
const vtkm::rendering::Color &backgroundColor =
|
|
|
|
vtkm::rendering::Color(0,0,0,1))
|
2016-06-02 19:41:14 +00:00
|
|
|
: Mapper(mapper),
|
2016-05-24 20:34:47 +00:00
|
|
|
Surface(surface),
|
2016-06-02 19:04:01 +00:00
|
|
|
Camera(camera),
|
2016-05-24 20:34:47 +00:00
|
|
|
BackgroundColor(backgroundColor)
|
|
|
|
{
|
2016-06-02 19:41:14 +00:00
|
|
|
this->Mapper.SetBackgroundColor(this->BackgroundColor);
|
2016-05-24 20:34:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
VTKM_CONT_EXPORT
|
|
|
|
virtual void Initialize() {this->Surface.Initialize();}
|
|
|
|
|
|
|
|
VTKM_CONT_EXPORT
|
|
|
|
virtual void Paint() = 0;
|
|
|
|
VTKM_CONT_EXPORT
|
|
|
|
virtual void RenderScreenAnnotations() {}
|
|
|
|
VTKM_CONT_EXPORT
|
|
|
|
virtual void RenderWorldAnnotations() {}
|
|
|
|
|
|
|
|
VTKM_CONT_EXPORT
|
|
|
|
void SaveAs(const std::string &fileName)
|
|
|
|
{
|
|
|
|
this->Surface.SaveAs(fileName);
|
|
|
|
}
|
2016-04-18 20:42:59 +00:00
|
|
|
|
2016-05-19 14:13:04 +00:00
|
|
|
protected:
|
2016-05-24 20:34:47 +00:00
|
|
|
VTKM_CONT_EXPORT
|
|
|
|
void SetupForWorldSpace(bool viewportClip=true)
|
|
|
|
{
|
2016-06-02 19:04:01 +00:00
|
|
|
//this->Camera.SetupMatrices();
|
|
|
|
this->Surface.SetViewToWorldSpace(this->Camera,viewportClip);
|
2016-05-24 20:34:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
VTKM_CONT_EXPORT
|
|
|
|
void SetupForScreenSpace(bool viewportClip=false)
|
|
|
|
{
|
2016-06-02 19:04:01 +00:00
|
|
|
//this->Camera.SetupMatrices();
|
|
|
|
this->Surface.SetViewToScreenSpace(this->Camera,viewportClip);
|
2016-05-24 20:34:47 +00:00
|
|
|
}
|
2016-04-18 20:42:59 +00:00
|
|
|
};
|
2016-05-19 22:37:37 +00:00
|
|
|
|
2016-02-09 13:59:26 +00:00
|
|
|
// Window2D Window3D
|
2016-06-02 19:41:14 +00:00
|
|
|
template<typename MapperType,
|
2016-04-15 19:24:23 +00:00
|
|
|
typename SurfaceType,
|
|
|
|
typename WorldAnnotatorType>
|
2016-06-02 19:41:14 +00:00
|
|
|
class Window3D : public Window<MapperType, SurfaceType,WorldAnnotatorType>
|
2016-02-09 13:59:26 +00:00
|
|
|
{
|
2016-06-02 19:41:14 +00:00
|
|
|
typedef Window<MapperType, SurfaceType,WorldAnnotatorType> Superclass;
|
2016-02-09 13:59:26 +00:00
|
|
|
public:
|
2016-06-01 17:51:37 +00:00
|
|
|
vtkm::rendering::Scene Scene;
|
2016-05-24 20:34:47 +00:00
|
|
|
// 3D-specific annotations
|
|
|
|
vtkm::rendering::BoundingBoxAnnotation BoxAnnotation;
|
|
|
|
vtkm::rendering::AxisAnnotation3D XAxisAnnotation;
|
|
|
|
vtkm::rendering::AxisAnnotation3D YAxisAnnotation;
|
|
|
|
vtkm::rendering::AxisAnnotation3D ZAxisAnnotation;
|
2016-05-31 19:32:56 +00:00
|
|
|
vtkm::rendering::ColorBarAnnotation ColorBarAnnotation;
|
2016-05-24 20:34:47 +00:00
|
|
|
|
|
|
|
VTKM_CONT_EXPORT
|
2016-06-01 17:51:37 +00:00
|
|
|
Window3D(const vtkm::rendering::Scene &scene,
|
2016-06-02 19:41:14 +00:00
|
|
|
const MapperType &mapper,
|
2016-05-24 20:34:47 +00:00
|
|
|
const SurfaceType &surface,
|
2016-06-02 19:04:01 +00:00
|
|
|
const vtkm::rendering::Camera &camera,
|
2016-05-24 20:34:47 +00:00
|
|
|
const vtkm::rendering::Color &backgroundColor =
|
|
|
|
vtkm::rendering::Color(0,0,0,1))
|
2016-06-02 19:41:14 +00:00
|
|
|
: Superclass(mapper,surface,camera,backgroundColor),
|
2016-05-24 20:34:47 +00:00
|
|
|
Scene(scene)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
VTKM_CONT_EXPORT
|
|
|
|
virtual void Paint()
|
|
|
|
{
|
|
|
|
this->Surface.Activate();
|
|
|
|
this->Surface.Clear();
|
|
|
|
this->SetupForWorldSpace();
|
2016-06-02 19:41:14 +00:00
|
|
|
this->Scene.Render(this->Mapper, this->Surface, this->Camera);
|
2016-05-24 20:34:47 +00:00
|
|
|
this->RenderWorldAnnotations();
|
|
|
|
|
|
|
|
this->SetupForScreenSpace();
|
|
|
|
this->RenderScreenAnnotations();
|
|
|
|
|
|
|
|
this->Surface.Finish();
|
|
|
|
}
|
|
|
|
|
|
|
|
VTKM_CONT_EXPORT
|
|
|
|
virtual void RenderScreenAnnotations()
|
|
|
|
{
|
2016-05-24 20:46:12 +00:00
|
|
|
if (this->Scene.Plots.size() > 0)
|
2016-02-09 13:59:26 +00:00
|
|
|
{
|
2016-05-31 19:32:56 +00:00
|
|
|
//this->ColorBarAnnotation.SetAxisColor(vtkm::rendering::Color(1,1,1));
|
2016-05-26 23:04:35 +00:00
|
|
|
this->ColorBarAnnotation.SetRange(this->Scene.Plots[0].ScalarRange, 5);
|
2016-05-24 20:54:20 +00:00
|
|
|
this->ColorBarAnnotation.SetColorTable(this->Scene.Plots[0].ColorTable);
|
2016-06-02 19:04:01 +00:00
|
|
|
this->ColorBarAnnotation.Render(this->Camera, this->WorldAnnotator, this->Surface);
|
2016-02-09 13:59:26 +00:00
|
|
|
}
|
2016-05-24 20:34:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
VTKM_CONT_EXPORT
|
|
|
|
virtual void RenderWorldAnnotations()
|
|
|
|
{
|
2016-05-26 23:04:35 +00:00
|
|
|
vtkm::Bounds bounds = this->Scene.GetSpatialBounds();
|
|
|
|
vtkm::Float64 xmin = bounds.X.Min, xmax = bounds.X.Max;
|
|
|
|
vtkm::Float64 ymin = bounds.Y.Min, ymax = bounds.Y.Max;
|
2016-05-31 19:32:56 +00:00
|
|
|
vtkm::Float64 zmin = bounds.Z.Min, zmax = bounds.Z.Max;
|
2016-05-24 20:34:47 +00:00
|
|
|
vtkm::Float64 dx = xmax-xmin, dy = ymax-ymin, dz = zmax-zmin;
|
|
|
|
vtkm::Float64 size = vtkm::Sqrt(dx*dx + dy*dy + dz*dz);
|
|
|
|
|
|
|
|
this->BoxAnnotation.SetColor(Color(.5f,.5f,.5f));
|
|
|
|
this->BoxAnnotation.SetExtents(this->Scene.GetSpatialBounds());
|
2016-06-02 19:04:01 +00:00
|
|
|
this->BoxAnnotation.Render(this->Camera, this->WorldAnnotator);
|
2016-05-24 20:34:47 +00:00
|
|
|
|
2016-06-02 19:04:01 +00:00
|
|
|
bool xtest = this->Camera.Camera3d.LookAt[0] > this->Camera.Camera3d.Position[0];
|
|
|
|
bool ytest = this->Camera.Camera3d.LookAt[1] > this->Camera.Camera3d.Position[1];
|
|
|
|
bool ztest = this->Camera.Camera3d.LookAt[2] > this->Camera.Camera3d.Position[2];
|
2016-05-31 19:32:56 +00:00
|
|
|
|
|
|
|
const bool outsideedges = true; // if false, do closesttriad
|
|
|
|
if (outsideedges)
|
2016-05-09 20:32:27 +00:00
|
|
|
{
|
2016-05-31 19:32:56 +00:00
|
|
|
xtest = !xtest;
|
|
|
|
//ytest = !ytest;
|
2016-05-09 20:32:27 +00:00
|
|
|
}
|
|
|
|
|
2016-05-24 20:34:47 +00:00
|
|
|
vtkm::Float64 xrel = vtkm::Abs(dx) / size;
|
|
|
|
vtkm::Float64 yrel = vtkm::Abs(dy) / size;
|
|
|
|
vtkm::Float64 zrel = vtkm::Abs(dz) / size;
|
|
|
|
|
|
|
|
this->XAxisAnnotation.SetAxis(0);
|
|
|
|
this->XAxisAnnotation.SetColor(Color(1,1,1));
|
|
|
|
this->XAxisAnnotation.SetTickInvert(xtest,ytest,ztest);
|
|
|
|
this->XAxisAnnotation.SetWorldPosition(xmin,
|
|
|
|
ytest ? ymin : ymax,
|
|
|
|
ztest ? zmin : zmax,
|
|
|
|
xmax,
|
|
|
|
ytest ? ymin : ymax,
|
|
|
|
ztest ? zmin : zmax);
|
|
|
|
this->XAxisAnnotation.SetRange(xmin, xmax);
|
|
|
|
this->XAxisAnnotation.SetMajorTickSize(size / 40.f, 0);
|
|
|
|
this->XAxisAnnotation.SetMinorTickSize(size / 80.f, 0);
|
2016-05-31 19:32:56 +00:00
|
|
|
this->XAxisAnnotation.SetLabelFontOffset(vtkm::Float32(size / 15.f));
|
2016-05-24 20:34:47 +00:00
|
|
|
this->XAxisAnnotation.SetMoreOrLessTickAdjustment(xrel < .3 ? -1 : 0);
|
2016-06-02 19:04:01 +00:00
|
|
|
this->XAxisAnnotation.Render(this->Camera, this->WorldAnnotator, this->Surface);
|
2016-05-24 20:34:47 +00:00
|
|
|
|
2016-05-31 19:32:56 +00:00
|
|
|
this->YAxisAnnotation.SetAxis(1);
|
2016-05-24 20:34:47 +00:00
|
|
|
this->YAxisAnnotation.SetColor(Color(1,1,1));
|
|
|
|
this->YAxisAnnotation.SetTickInvert(xtest,ytest,ztest);
|
|
|
|
this->YAxisAnnotation.SetWorldPosition(xtest ? xmin : xmax,
|
|
|
|
ymin,
|
|
|
|
ztest ? zmin : zmax,
|
|
|
|
xtest ? xmin : xmax,
|
|
|
|
ymax,
|
|
|
|
ztest ? zmin : zmax);
|
|
|
|
this->YAxisAnnotation.SetRange(ymin, ymax);
|
|
|
|
this->YAxisAnnotation.SetMajorTickSize(size / 40.f, 0);
|
|
|
|
this->YAxisAnnotation.SetMinorTickSize(size / 80.f, 0);
|
2016-05-31 19:32:56 +00:00
|
|
|
this->YAxisAnnotation.SetLabelFontOffset(vtkm::Float32(size / 15.f));
|
2016-05-24 20:34:47 +00:00
|
|
|
this->YAxisAnnotation.SetMoreOrLessTickAdjustment(yrel < .3 ? -1 : 0);
|
2016-06-02 19:04:01 +00:00
|
|
|
this->YAxisAnnotation.Render(this->Camera, this->WorldAnnotator, this->Surface);
|
2016-05-24 20:34:47 +00:00
|
|
|
|
2016-05-31 19:32:56 +00:00
|
|
|
this->ZAxisAnnotation.SetAxis(2);
|
2016-05-24 20:34:47 +00:00
|
|
|
this->ZAxisAnnotation.SetColor(Color(1,1,1));
|
|
|
|
this->ZAxisAnnotation.SetTickInvert(xtest,ytest,ztest);
|
|
|
|
this->ZAxisAnnotation.SetWorldPosition(xtest ? xmin : xmax,
|
|
|
|
ytest ? ymin : ymax,
|
|
|
|
zmin,
|
|
|
|
xtest ? xmin : xmax,
|
|
|
|
ytest ? ymin : ymax,
|
|
|
|
zmax);
|
|
|
|
this->ZAxisAnnotation.SetRange(zmin, zmax);
|
|
|
|
this->ZAxisAnnotation.SetMajorTickSize(size / 40.f, 0);
|
|
|
|
this->ZAxisAnnotation.SetMinorTickSize(size / 80.f, 0);
|
2016-05-31 19:32:56 +00:00
|
|
|
this->ZAxisAnnotation.SetLabelFontOffset(vtkm::Float32(size / 15.f));
|
2016-05-24 20:34:47 +00:00
|
|
|
this->ZAxisAnnotation.SetMoreOrLessTickAdjustment(zrel < .3 ? -1 : 0);
|
2016-06-02 19:04:01 +00:00
|
|
|
this->ZAxisAnnotation.Render(this->Camera, this->WorldAnnotator, this->Surface);
|
2016-05-24 20:34:47 +00:00
|
|
|
}
|
2016-02-09 13:59:26 +00:00
|
|
|
};
|
|
|
|
|
2016-06-02 19:41:14 +00:00
|
|
|
template<typename MapperType,
|
2016-05-09 20:32:27 +00:00
|
|
|
typename SurfaceType,
|
|
|
|
typename WorldAnnotatorType>
|
2016-06-02 19:41:14 +00:00
|
|
|
class Window2D : public Window<MapperType, SurfaceType,WorldAnnotatorType>
|
2016-02-09 13:59:26 +00:00
|
|
|
{
|
2016-06-02 19:41:14 +00:00
|
|
|
typedef Window<MapperType, SurfaceType,WorldAnnotatorType> Superclass;
|
2016-02-09 13:59:26 +00:00
|
|
|
public:
|
2016-06-01 17:51:37 +00:00
|
|
|
vtkm::rendering::Scene Scene;
|
2016-05-24 20:34:47 +00:00
|
|
|
// 2D-specific annotations
|
2016-05-31 19:32:56 +00:00
|
|
|
vtkm::rendering::AxisAnnotation2D HorizontalAxisAnnotation;
|
|
|
|
vtkm::rendering::AxisAnnotation2D VerticalAxisAnnotation;
|
|
|
|
vtkm::rendering::ColorBarAnnotation ColorBarAnnotation;
|
2016-05-24 20:34:47 +00:00
|
|
|
|
|
|
|
VTKM_CONT_EXPORT
|
2016-06-01 17:51:37 +00:00
|
|
|
Window2D(const vtkm::rendering::Scene &scene,
|
2016-06-02 19:41:14 +00:00
|
|
|
const MapperType &mapper,
|
2016-05-24 20:34:47 +00:00
|
|
|
const SurfaceType &surface,
|
2016-06-02 19:04:01 +00:00
|
|
|
const vtkm::rendering::Camera &camera,
|
2016-05-24 20:34:47 +00:00
|
|
|
const vtkm::rendering::Color &backgroundColor =
|
|
|
|
vtkm::rendering::Color(0,0,0,1))
|
2016-06-02 19:41:14 +00:00
|
|
|
: Superclass(mapper, surface, camera, backgroundColor),
|
2016-05-24 20:34:47 +00:00
|
|
|
Scene(scene)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
VTKM_CONT_EXPORT
|
|
|
|
virtual void Paint()
|
|
|
|
{
|
|
|
|
this->Surface.Activate();
|
|
|
|
this->Surface.Clear();
|
|
|
|
this->SetupForWorldSpace();
|
|
|
|
|
2016-06-02 19:41:14 +00:00
|
|
|
this->Scene.Render(this->Mapper, this->Surface, this->Camera);
|
2016-05-24 20:34:47 +00:00
|
|
|
this->RenderWorldAnnotations();
|
|
|
|
|
|
|
|
this->SetupForScreenSpace();
|
|
|
|
this->RenderScreenAnnotations();
|
|
|
|
|
|
|
|
this->Surface.Finish();
|
|
|
|
}
|
|
|
|
|
|
|
|
VTKM_CONT_EXPORT
|
|
|
|
void RenderScreenAnnotations()
|
|
|
|
{
|
|
|
|
vtkm::Float32 viewportLeft;
|
|
|
|
vtkm::Float32 viewportRight;
|
|
|
|
vtkm::Float32 viewportTop;
|
|
|
|
vtkm::Float32 viewportBottom;
|
2016-06-02 19:04:01 +00:00
|
|
|
this->Camera.GetRealViewport(
|
2016-05-24 20:34:47 +00:00
|
|
|
viewportLeft, viewportRight, viewportBottom, viewportTop);
|
|
|
|
|
|
|
|
this->HorizontalAxisAnnotation.SetColor(vtkm::rendering::Color(1,1,1));
|
|
|
|
this->HorizontalAxisAnnotation.SetScreenPosition(
|
|
|
|
viewportLeft, viewportBottom, viewportRight, viewportBottom);
|
2016-06-02 19:04:01 +00:00
|
|
|
this->HorizontalAxisAnnotation.SetRangeForAutoTicks(this->Camera.Camera2d.Left,
|
|
|
|
this->Camera.Camera2d.Right);
|
2016-05-24 20:34:47 +00:00
|
|
|
this->HorizontalAxisAnnotation.SetMajorTickSize(0, .05, 1.0);
|
|
|
|
this->HorizontalAxisAnnotation.SetMinorTickSize(0, .02, 1.0);
|
2016-05-31 19:32:56 +00:00
|
|
|
this->HorizontalAxisAnnotation.SetLabelAlignment(TextAnnotation::HCenter,
|
|
|
|
TextAnnotation::Top);
|
2016-05-24 20:34:47 +00:00
|
|
|
this->HorizontalAxisAnnotation.Render(
|
2016-06-02 19:04:01 +00:00
|
|
|
this->Camera, this->WorldAnnotator, this->Surface);
|
2016-05-24 20:34:47 +00:00
|
|
|
|
|
|
|
vtkm::Float32 windowaspect =
|
2016-06-02 19:04:01 +00:00
|
|
|
vtkm::Float32(this->Camera.Width) / vtkm::Float32(this->Camera.Height);
|
2016-05-24 20:34:47 +00:00
|
|
|
|
|
|
|
this->VerticalAxisAnnotation.SetColor(Color(1,1,1));
|
|
|
|
this->VerticalAxisAnnotation.SetScreenPosition(
|
|
|
|
viewportLeft, viewportBottom, viewportLeft, viewportTop);
|
2016-06-02 19:04:01 +00:00
|
|
|
this->VerticalAxisAnnotation.SetRangeForAutoTicks(this->Camera.Camera2d.Bottom,
|
|
|
|
this->Camera.Camera2d.Top);
|
2016-05-24 20:34:47 +00:00
|
|
|
this->VerticalAxisAnnotation.SetMajorTickSize(.05 / windowaspect, 0, 1.0);
|
|
|
|
this->VerticalAxisAnnotation.SetMinorTickSize(.02 / windowaspect, 0, 1.0);
|
2016-05-31 19:32:56 +00:00
|
|
|
this->VerticalAxisAnnotation.SetLabelAlignment(TextAnnotation::Right,
|
|
|
|
TextAnnotation::VCenter);
|
2016-05-24 20:34:47 +00:00
|
|
|
this->VerticalAxisAnnotation.Render(
|
2016-06-02 19:04:01 +00:00
|
|
|
this->Camera, this->WorldAnnotator, this->Surface);
|
2016-05-24 20:34:47 +00:00
|
|
|
|
2016-05-24 20:46:12 +00:00
|
|
|
if (this->Scene.Plots.size() > 0)
|
2016-05-09 20:32:27 +00:00
|
|
|
{
|
2016-05-31 19:32:56 +00:00
|
|
|
//this->ColorBarAnnotation.SetAxisColor(vtkm::rendering::Color(1,1,1));
|
|
|
|
this->ColorBarAnnotation.SetRange(this->Scene.Plots[0].ScalarRange.Min,
|
|
|
|
this->Scene.Plots[0].ScalarRange.Max,
|
2016-05-24 20:34:47 +00:00
|
|
|
5);
|
2016-05-24 20:54:20 +00:00
|
|
|
this->ColorBarAnnotation.SetColorTable(this->Scene.Plots[0].ColorTable);
|
2016-05-24 20:34:47 +00:00
|
|
|
this->ColorBarAnnotation.Render(
|
2016-06-02 19:04:01 +00:00
|
|
|
this->Camera, this->WorldAnnotator, this->Surface);
|
2016-05-09 20:32:27 +00:00
|
|
|
}
|
2016-05-24 20:34:47 +00:00
|
|
|
}
|
2016-02-09 13:59:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}} //namespace vtkm::rendering
|
|
|
|
|
|
|
|
#endif //vtk_m_rendering_Window_h
|