vtkPVRenderView.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVRenderView.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
27 #ifndef vtkPVRenderView_h
28 #define vtkPVRenderView_h
29 
30 #include "vtkBoundingBox.h" // needed for iVar
31 #include "vtkNew.h" // needed for iVar
32 #include "vtkPVView.h"
33 #include "vtkParaViewDeprecation.h"
34 #include "vtkRemotingViewsModule.h" //needed for exports
35 #include "vtkSmartPointer.h" // needed for iVar
36 #include "vtkWeakPointer.h" // needed for iVar
37 
38 class vtkAlgorithmOutput;
39 class vtkCamera;
40 class vtkCameraOrientationWidget;
41 class vtkCuller;
43 class vtkFloatArray;
44 class vtkFXAAOptions;
51 class vtkLight;
52 class vtkLightKit;
53 class vtkMatrix4x4;
55 class vtkProp;
56 class vtkPVAxesWidget;
65 class vtkRenderer;
66 class vtkRenderViewBase;
67 class vtkRenderWindow;
69 class vtkSkybox;
71 class vtkTexture;
72 class vtkTimerLog;
74 
76 {
77  //*****************************************************************
78 public:
79  static vtkPVRenderView* New();
80  vtkTypeMacro(vtkPVRenderView, vtkPVView);
81  void PrintSelf(ostream& os, vtkIndent indent) override;
82 
84  {
85  INTERACTION_MODE_UNINTIALIZED = -1,
86  INTERACTION_MODE_3D = 0,
87  INTERACTION_MODE_2D, // not implemented yet.
90  INTERACTION_MODE_POLYGON
91  };
92 
94 
105  virtual void SetInteractionMode(int mode);
106  vtkGetMacro(InteractionMode, int);
108 
110 
114  void SetSize(int, int) override;
115  void SetPosition(int, int) override;
117 
119 
124  vtkGetObjectMacro(NonCompositedRenderer, vtkRenderer);
126 
130  enum
131  {
132  DEFAULT_RENDERER = 0,
133  NON_COMPOSITED_RENDERER = 1,
134  };
135 
141  virtual vtkRenderer* GetRenderer(int rendererType = DEFAULT_RENDERER);
142 
144 
148  vtkCamera* GetActiveCamera();
149  virtual void SetActiveCamera(vtkCamera*);
151 
155  vtkRenderWindowInteractor* GetInteractor();
156 
162  virtual void SetupInteractor(vtkRenderWindowInteractor*);
163 
165 
168  vtkGetObjectMacro(InteractorStyle, vtkPVInteractorStyle);
170 
172 
178  void ResetCamera();
179  void ResetCamera(double bounds[6]);
180  void ResetCameraScreenSpace(double offsetRatio = 0.9);
181  void ResetCameraScreenSpace(double* bounds, double offsetRatio = 0.9);
182  // void ResetCameraScreenSpace(double offsetRatio, double bounds[6]);
184 
186 
192  double* ComputeVisibleBounds(vtkPVDataRepresentation* pvrepr) VTK_SIZEHINT(6);
193  double LastRepresentationVisibleBounds[6];
195 
201  void StillRender() override;
202 
209  void InteractiveRender() override;
210 
212 
220  vtkSetMacro(SuppressRendering, bool);
221  vtkGetMacro(SuppressRendering, bool);
222  vtkBooleanMacro(SuppressRendering, bool);
224 
226 
234  vtkSetClampMacro(StillRenderImageReductionFactor, int, 1, 20);
235  vtkGetMacro(StillRenderImageReductionFactor, int);
237 
239 
245  vtkSetClampMacro(InteractiveRenderImageReductionFactor, int, 1, 20);
246  vtkGetMacro(InteractiveRenderImageReductionFactor, int);
248 
250 
255  vtkSetMacro(RemoteRenderingThreshold, double);
256  vtkGetMacro(RemoteRenderingThreshold, double);
258 
260 
265  vtkSetMacro(LODRenderingThreshold, double);
266  vtkGetMacro(LODRenderingThreshold, double);
268 
270 
276  vtkSetClampMacro(LODResolution, double, 0.0, 1.0);
277  vtkGetMacro(LODResolution, double);
279 
281 
287  vtkSetMacro(UseOutlineForLODRendering, bool);
288  vtkGetMacro(UseOutlineForLODRendering, bool);
290 
299  void ConfigureCompressor(const char* configuration);
300 
305  virtual void ResetCameraClippingRange();
306 
308 
312  void SetUseLightKit(bool enable);
313  vtkGetMacro(UseLightKit, bool);
314  vtkBooleanMacro(UseLightKit, bool);
316 
318  void StreamingUpdate(const double view_planes[24]);
319  void DeliverStreamedPieces(unsigned int size, unsigned int* representation_ids);
321 
325  static vtkInformationIntegerKey* USE_LOD();
326 
330  static vtkInformationDoubleKey* LOD_RESOLUTION();
331 
336  static vtkInformationIntegerKey* USE_OUTLINE_FOR_LOD();
337 
344  static vtkInformationIntegerKey* RENDER_EMPTY_IMAGES();
345 
350  static vtkInformationIntegerKey* NEED_ORDERED_COMPOSITING();
351 
356  static vtkInformationDoubleVectorKey* VIEW_PLANES();
357 
361  static vtkInformationRequestKey* REQUEST_STREAMING_UPDATE();
362 
366  static vtkInformationRequestKey* REQUEST_PROCESS_STREAMED_PIECE();
367 
369 
376  void SelectCells(int region[4], const char* array = nullptr);
377  void SelectCells(int region0, int region1, int region2, int region3, const char* array = nullptr)
378  {
379  int r[4] = { region0, region1, region2, region3 };
380  this->SelectCells(r, array);
381  }
382  void SelectPoints(int region[4], const char* array = nullptr);
383  void SelectPoints(int region0, int region1, int region2, int region3, const char* array = nullptr)
384  {
385  int r[4] = { region0, region1, region2, region3 };
386  this->SelectPoints(r, array);
387  }
388  void Select(int field_association, int region[4], const char* array = nullptr);
390 
392 
402  void SelectPolygonPoints(int* polygon2DArray, vtkIdType arrayLen);
403  void SelectPolygonCells(int* polygon2DArray, vtkIdType arrayLen);
404  void SelectPolygon(int field_association, int* polygon2DArray, vtkIdType arrayLen);
406 
408 
412  vtkGetObjectMacro(LastSelection, vtkSelection);
414 
416 
420  vtkSetMacro(UseInteractiveRenderingForScreenshots, bool);
421  vtkBooleanMacro(UseInteractiveRenderingForScreenshots, bool);
422  vtkGetMacro(UseInteractiveRenderingForScreenshots, bool);
424 
426 
429  vtkGetMacro(RemoteRenderingAvailable, bool);
430  void RemoteRenderingAvailableOff() { this->RemoteRenderingAvailable = false; }
432 
434 
437  void NVPipeAvailableOn();
438  void NVPipeAvailableOff();
440 
442 
445  vtkGetMacro(UsedLODForLastRender, bool);
447 
453  void InvalidateCachedSelection();
454 
456 
461  static vtkAlgorithmOutput* GetPieceProducer(
463  static vtkAlgorithmOutput* GetPieceProducerLOD(
464  vtkInformation* info, vtkPVDataRepresentation* repr, int port = 0);
465  static void SetRedistributionMode(
466  vtkInformation* info, vtkPVDataRepresentation* repr, int mode, int port = 0);
467  static void SetRedistributionModeToSplitBoundaryCells(
468  vtkInformation* info, vtkPVDataRepresentation* repr, int port = 0);
469  static void SetRedistributionModeToDuplicateBoundaryCells(
470  vtkInformation* info, vtkPVDataRepresentation* repr, int port = 0);
471  static void SetRedistributionModeToUniquelyAssignBoundaryCells(
472  vtkInformation* info, vtkPVDataRepresentation* repr, int port = 0);
473  static void SetGeometryBounds(vtkInformation* info, vtkPVDataRepresentation* repr,
474  const double bounds[6], vtkMatrix4x4* transform = nullptr, int port = 0);
475  static void SetStreamable(vtkInformation* info, vtkPVDataRepresentation* repr, bool streamable);
476  static void SetNextStreamedPiece(
478  static vtkDataObject* GetCurrentStreamedPiece(
481 
483 
510  enum
511  {
512  USE_BOUNDS_FOR_REDISTRIBUTION = 0x01,
513  DATA_IS_REDISTRIBUTABLE = 0x02,
514  USE_DATA_FOR_LOAD_BALANCING = 0x40,
515  };
516  static void SetOrderedCompositingConfiguration(vtkInformation* info,
517  vtkPVDataRepresentation* repr, int config, const double* bounds = nullptr, int port = 0);
519 
524  void SetMaxClipBounds(double bds[6]);
525 
527 
531  void SetLockBounds(bool nv);
532  vtkGetMacro(LockBounds, bool);
534 
540  static void SetDeliverToAllProcesses(
541  vtkInformation* info, vtkPVDataRepresentation* repr, bool clone);
542 
552  static void SetDeliverToClientAndRenderingProcesses(vtkInformation* info,
553  vtkPVDataRepresentation* repr, bool deliver_to_client, bool gather_before_delivery,
554  int port = 0);
555 
557 
565  static void SetRequiresDistributedRendering(
566  vtkInformation* info, vtkPVDataRepresentation* repr, bool value, bool for_lod = false);
568  vtkInformation* info, vtkPVDataRepresentation* repr, bool value)
569  {
570  vtkPVRenderView::SetRequiresDistributedRendering(info, repr, value, true);
571  }
573 
575 
587  static void SetForceDataDistributionMode(vtkInformation* info, int flag);
588  bool IsForceDataDistributionModeSet() const { return this->ForceDataDistributionMode != -1; }
589  int GetForceDataDistributionMode() const { return this->ForceDataDistributionMode; }
591 
593 
598  int RegisterPropForHardwareSelection(vtkPVDataRepresentation* repr, vtkProp* prop);
599  void UnRegisterPropForHardwareSelection(vtkPVDataRepresentation* repr, vtkProp* prop);
601 
603 
606  void SetShowAnnotation(bool val);
607  vtkSetMacro(UpdateAnnotation, bool);
609 
611 
614  void SetAnnotationColor(double r, double g, double b);
616 
620  virtual void SetGridAxes3DActor(vtkPVGridAxes3DActor*);
621 
623 
626  virtual void SetOrientationAxesInteractivity(bool);
627  virtual void SetOrientationAxesVisibility(bool);
628 
629  void SetOrientationAxesLabelColor(double r, double g, double b);
630  void SetOrientationAxesOutlineColor(double r, double g, double b);
631 
632  void SetOrientationAxesXColor(double r, double g, double b);
633  void SetOrientationAxesYColor(double r, double g, double b);
634  void SetOrientationAxesZColor(double r, double g, double b);
635 
636  void SetOrientationAxesXVisibility(bool vis);
637  void SetOrientationAxesYVisibility(bool vis);
638  void SetOrientationAxesZVisibility(bool vis);
639 
640  void SetOrientationAxesXLabelText(const char* text);
641  void SetOrientationAxesYLabelText(const char* text);
642  void SetOrientationAxesZLabelText(const char* text);
644 
646 
649  void SetCameraOrientationWidgetVisibility(bool visible);
650  void SetCameraOrientationWidgetSize(int size);
651  void SetCameraOrientationWidgetPadding(int padding[2]);
652  void SetCameraOrientationWidgetAnchor(int anchor);
654 
658  virtual void SetCenterAxesVisibility(bool);
659 
661 
664  virtual void SetCenterOfRotation(double x, double y, double z);
665  virtual void SetRotationFactor(double factor);
667 
669 
672  void SetKeyLightWarmth(double val);
673  void SetKeyLightIntensity(double val);
674  void SetKeyLightElevation(double val);
675  void SetKeyLightAzimuth(double val);
676  void SetFillLightWarmth(double val);
677  void SetKeyToFillRatio(double val);
678  void SetFillLightElevation(double val);
679  void SetFillLightAzimuth(double val);
680  void SetBackLightWarmth(double val);
681  void SetKeyToBackRatio(double val);
682  void SetBackLightElevation(double val);
683  void SetBackLightAzimuth(double val);
684  void SetHeadLightWarmth(double val);
685  void SetKeyToHeadRatio(double val);
686  void SetMaintainLuminance(int val);
688 
690 
693  vtkSetMacro(UseHiddenLineRemoval, bool);
694  virtual void SetUseDepthPeeling(int val);
695  virtual void SetUseDepthPeelingForVolumes(bool val);
696  virtual void SetMaximumNumberOfPeels(int val);
697  virtual void SetBackgroundTexture(vtkTexture* val);
699 
701 
705  vtkSetMacro(UseRenderViewSettingsForBackground, bool);
706  vtkGetMacro(UseRenderViewSettingsForBackground, bool);
708 
710  {
716  };
717 
719 
724  vtkSetClampMacro(BackgroundColorMode, int, DEFAULT, STEREO_SKYBOX);
725  vtkSetVector3Macro(Background, double);
726  vtkGetVector3Macro(Background, double);
727  vtkSetVector3Macro(Background2, double);
728  vtkGetVector3Macro(Background2, double);
729  vtkSetMacro(UseEnvironmentLighting, bool);
731 
733 
736  virtual void SetEnvironmentalBG(double r, double g, double b);
737  virtual void SetEnvironmentalBG2(double r, double g, double b);
738  virtual void SetEnvironmentalBGTexture(vtkTexture* val);
739  virtual void SetGradientEnvironmentalBG(int val);
740  virtual void SetTexturedEnvironmentalBG(int val);
741  virtual void SetBackgroundMode(int val);
743 
745 
748  void AddLight(vtkLight*);
749  void RemoveLight(vtkLight*);
751 
753 
756  void SetStereoCapableWindow(int val);
757  void SetStereoRender(int val);
758  vtkSetMacro(StereoType, int);
759  vtkSetMacro(ServerStereoType, int);
760  void SetMultiSamples(int val);
761  void SetAlphaBitPlanes(int val);
762  void SetStencilCapable(int val);
764 
768  void SetParallelProjection(int mode);
769 
771 
774  virtual void SetCamera2DManipulators(const int manipulators[9]);
775  virtual void SetCamera3DManipulators(const int manipulators[9]);
776  void SetCameraManipulators(vtkPVInteractorStyle* style, const int manipulators[9]);
777  virtual void SetReverseMouseWheelZoomDirection(bool reverse);
778  virtual void SetMouseWheelZoomsToCursor(bool value);
779  virtual void SetCamera2DMouseWheelMotionFactor(double factor);
780  virtual void SetCamera3DMouseWheelMotionFactor(double factor);
782 
790  void Update() override;
791 
795  virtual void UpdateLOD();
796 
798 
803  vtkGetMacro(UseLODForInteractiveRender, bool);
805 
807 
812  vtkGetMacro(UseDistributedRenderingForRender, bool);
814 
816 
821  vtkGetMacro(UseDistributedRenderingForLODRender, bool);
823 
825 
830  vtkGetMacro(StillRenderProcesses, vtkTypeUInt32);
832 
834 
839  vtkGetMacro(InteractiveRenderProcesses, vtkTypeUInt32);
841 
845  int GetDataDistributionMode(bool low_res);
846 
852  void Deliver(int use_lod, unsigned int size, unsigned int* representation_ids) override;
853 
862  bool GetUseOrderedCompositing();
863 
868  bool GetRenderEmptyImages();
869 
871 
874  vtkSetMacro(UseFXAA, bool);
875  vtkGetMacro(UseFXAA, bool);
877 
879 
882  void SetFXAARelativeContrastThreshold(double val);
883  void SetFXAAHardContrastThreshold(double val);
884  void SetFXAASubpixelBlendLimit(double val);
885  void SetFXAASubpixelContrastThreshold(double val);
886  void SetFXAAUseHighQualityEndpoints(bool val);
887  void SetFXAAEndpointSearchIterations(int val);
889 
894  {
895  Custom = 0,
896  Default = 1,
897  Uncharted2 = 2
898  };
899 
901 
904  void SetUseToneMapping(bool v);
905  vtkGetMacro(UseToneMapping, bool);
906  void SetToneMappingType(int);
907  void SetExposure(double);
908  void SetContrast(double);
909  void SetShoulder(double);
910  void SetMidIn(double);
911  void SetMidOut(double);
912  void SetHdrMax(double);
913  void SetUseACES(bool);
914  void SetGenericFilmicPresets(int t);
916 
918 
921  vtkSetMacro(UseSSAO, bool);
922  vtkGetMacro(UseSSAO, bool);
923  vtkSetMacro(UseSSAODefaultPresets, bool);
924  vtkSetMacro(Radius, double);
925  vtkSetMacro(KernelSize, int);
926  vtkSetMacro(Bias, double);
927  vtkSetMacro(Blur, bool);
929 
936  void CopyViewUpdateOptions(vtkPVRenderView* otherView);
937 
939 
942  void AddPropToRenderer(vtkProp* prop);
943  void RemovePropFromRenderer(vtkProp* prop);
945 
947 
961  bool BeginValuePassForRendering(int fieldAssociation, const char* arrayName, int component);
962  void EndValuePassForRendering();
963  vtkSmartPointer<vtkFloatArray> GrabValuePassResult();
965 
967 
970  void CaptureZBuffer();
971  vtkFloatArray* GetCapturedZBuffer();
973 
975 
978  void SetEnableOSPRay(bool);
979  bool GetEnableOSPRay();
982 
985  void SetShadows(bool);
986  bool GetShadows();
989 
992  void SetAmbientOcclusionSamples(int);
993  int GetAmbientOcclusionSamples();
996 
999  void SetRouletteDepth(int);
1000  int GetRouletteDepth();
1003 
1006  PARAVIEW_DEPRECATED_IN_5_11_0("Use vtkVolumeProperty::SetScatteringAnisotropy instead")
1007  void SetVolumeAnisotropy(double);
1008  PARAVIEW_DEPRECATED_IN_5_11_0("Use vtkVolumeProperty::GetScatteringAnisotropy instead")
1009  double GetVolumeAnisotropy();
1011 
1013 
1016  void SetSamplesPerPixel(int);
1017  int GetSamplesPerPixel();
1020 
1023  void SetMaxFrames(int);
1024  int GetMaxFrames();
1026 
1029  bool GetOSPRayContinueStreaming();
1031 
1034  void SetDenoise(bool);
1035  bool GetDenoise();
1037 
1039 
1042  void SetLightScale(double);
1043  double GetLightScale();
1045 
1049  void SetOSPRayRendererType(std::string);
1051 
1054  void SetBackgroundNorth(double x, double y, double z);
1055  void SetBackgroundEast(double x, double y, double z);
1057 
1060  virtual void SetMaterialLibrary(vtkPVMaterialLibrary*);
1061  void SetViewTime(double value) override;
1063 
1066  void SetTimeCacheSize(int);
1067  int GetTimeCacheSize();
1069 
1071 
1095  static vtkPVCameraCollection* GetDiscreteCameras(
1097  static void SetDiscreteCameras(
1100 
1101  // Get the RenderViewBase used by this
1102  vtkGetObjectMacro(RenderView, vtkRenderViewBase);
1103 
1107  void ScaleRendererViewports(const double viewport[4]) override;
1108 
1113  void SynchronizeMaximumIds(vtkIdType* maxPointId, vtkIdType* maxCellId);
1114 
1118  void SetHardwareSelector(vtkPVHardwareSelector* selector);
1119 
1120 protected:
1121  vtkPVRenderView();
1122  ~vtkPVRenderView() override;
1123 
1127  virtual void Render(bool interactive, bool skip_rendering);
1128 
1133  virtual void AboutToRenderOnLocalProcess(bool interactive) { (void)interactive; }
1134 
1141  bool ShouldUseDistributedRendering(double geometry_size, bool using_lod);
1142 
1146  bool ShouldUseLODRendering(double geometry);
1147 
1152  bool IsProcessRenderingGeometriesForCompositing(bool using_distributed_rendering);
1153 
1158  virtual void SynchronizeGeometryBounds();
1159 
1163  void SetLastSelection(vtkSelection*);
1164 
1169  virtual void UpdateCenterAxes();
1170 
1175  bool GetLocalProcessDoesRendering(bool using_distributed_rendering);
1176 
1181  bool TestCollaborationCounter();
1182 
1187  void SynchronizeForCollaboration();
1188 
1193  virtual void BuildAnnotationText(ostream& str);
1194 
1196 
1200  vtkGetMacro(SynchronizationCounter, unsigned int);
1202 
1204 
1207  vtkGetMacro(MakingSelection, bool);
1209 
1214  virtual bool PrepareSelect(int fieldAssociation, const char* array = nullptr);
1215 
1219  virtual void PostSelect(vtkSelection* sel, const char* array = nullptr);
1220 
1225  virtual void UpdateBackground(vtkRenderer* renderer = nullptr);
1226 
1230  void ConfigureTexture(vtkTexture* texture);
1231 
1237  virtual void SetupAndSetRenderer(vtkRenderer* ren);
1238 
1254 
1260 
1261  // this ivar can be used to suppress the render within
1262  // a StillRender or InteractiveRender. This is useful
1263  // in cases where you want the representations mappers
1264  // to be setup for rendering and have their data ready
1265  // but not actually do the render. For example if you
1266  // want to export the scene but not render it you must
1267  // turn on SuppressRendering and then call StillRender
1269 
1270  // 2D and 3D interactor style
1273 
1274  bool ReverseMouseWheelZoomDirection = false;
1275 
1276  // Active interactor style either [TwoDInteractorStyle, ThreeDInteractorStyle]
1278 
1280 
1281  // Used in collaboration mode to ensure that views are in the same state
1282  // (as far as representations added/removed goes) before rendering.
1284 
1285  // In mega-bytes.
1289 
1293 
1294  bool UseFXAA;
1296 
1298 
1299  bool UseSSAO;
1301  double Radius;
1303  double Bias;
1304  bool Blur;
1305 
1308 
1314 
1315  vtkTypeUInt32 StillRenderProcesses;
1317 
1323 
1325 
1326 private:
1327  vtkPVRenderView(const vtkPVRenderView&) = delete;
1328  void operator=(const vtkPVRenderView&) = delete;
1329 
1330  bool MakingSelection;
1331  int PreviousSwapBuffers;
1332  void OnSelectionChangedEvent();
1333  void OnPolygonSelectionEvent();
1334  void FinishSelection(vtkSelection*, const char*);
1335 
1336  // This flag is set to false when not all processes cannot render e.g. cannot
1337  // open the DISPLAY etc.
1338  bool RemoteRenderingAvailable;
1339 
1340  // Flags used to maintain rendering modes requested by representations.
1341  bool DistributedRenderingRequired;
1342  bool NonDistributedRenderingRequired;
1343  bool DistributedRenderingRequiredLOD;
1344  bool NonDistributedRenderingRequiredLOD;
1345 
1346  // Cached value for parallel projection set on camera.
1347  int ParallelProjection;
1348 
1349  // Cached state. Is currently ignored for distributed rendering.
1350  bool UseHiddenLineRemoval;
1351 
1352  class vtkInternals;
1353  vtkInternals* Internals;
1354 
1355  vtkNew<vtkTextRepresentation> Annotation;
1356  void UpdateAnnotationText();
1357 
1358  vtkNew<vtkOrderedCompositingHelper> OrderedCompositingHelper;
1359 
1360  int StereoType;
1361  int ServerStereoType;
1362  void UpdateStereoProperties();
1363 
1364  int BackgroundColorMode;
1365  bool UseEnvironmentLighting;
1366  bool UseRenderViewSettingsForBackground;
1367  double Background[3];
1368  double Background2[3];
1369 
1371  vtkNew<vtkTimerLog> Timer;
1372 
1373  int ForceDataDistributionMode;
1374  int PreviousDiscreteCameraIndex;
1375  vtkSmartPointer<vtkTexture> EnvironmentalBGTexture;
1376  bool UseTexturedEnvironmentalBG;
1377 };
1378 
1379 #endif
static void SetRequiresDistributedRenderingLOD(vtkInformation *info, vtkPVDataRepresentation *repr, bool value)
Some representation only work when remote rendering or local rendering.
vtkPVInteractorStyle * InteractorStyle
coordinates rendering between corresponding renderers across multiple processes
static vtkView * New()
vtkPVInteractorStyle * TwoDInteractorStyle
vtkSelection * LastSelection
vtkSmartPointer< vtkPVHardwareSelector > Selector
#define VTKREMOTINGVIEWS_EXPORT
manages visual material definitions
vtkPVDataRepresentation adds some ParaView specific API to data representations.
vtkRenderViewBase * RenderView
bool UseDistributedRenderingForLODRender
virtual void Deliver(int use_lod, unsigned int size, unsigned int *representation_ids)
Called on all processes to request data-delivery for the list of representations. ...
double RemoteRenderingThreshold
vtkPVSynchronizedRenderer * SynchronizedRenderers
void Update() override
Overridden to not call Update() directly on the input representations, instead use ProcessViewRequest...
info
int vtkIdType
vtkHardwareSelector subclass with paraview specific logic to avoid recapturing buffers unless needed...
vtkSmartPointer< vtkPVGridAxes3DActor > GridAxes3DActor
int GetForceDataDistributionMode() const
This is an temporary/experimental option and may be removed without notice.
baseclass for all ParaView views.
Definition: vtkPVView.h:44
int InteractiveRenderImageReductionFactor
void SelectCells(int region0, int region1, int region2, int region3, const char *array=nullptr)
Make a selection.
void RemoteRenderingAvailableOff()
Returns if remote-rendering is possible on the current group of processes.
virtual void SetSize(int, int)
Set the size of this view in the multiview configuration.
bool UseInteractiveRenderingForScreenshots
vtkNew< vtkFXAAOptions > FXAAOptions
bool IsForceDataDistributionModeSet() const
This is an temporary/experimental option and may be removed without notice.
vtkTypeUInt32 StillRenderProcesses
A widget to manipulate vtkPVAxesWidget.
vtkNew< vtkSkybox > Skybox
vtkInteractorStyleRubberBandZoom * RubberBandZoom
vtkPVAxesWidget * OrientationWidget
double LODRenderingThreshold
vtkNew< vtkCameraOrientationWidget > CameraOrientationWidget
static void SetRequiresDistributedRendering(vtkInformation *info, vtkPVDataRepresentation *repr, bool value, bool for_lod=false)
Some representation only work when remote rendering or local rendering.
size
mode
unsigned int SynchronizationCounter
collection of cameras used by vtkPVRenderView for cases where one wants to limit interactions to a fi...
vtkInteractorStyleDrawPolygon * PolygonStyle
void SelectPoints(int region0, int region1, int region2, int region3, const char *array=nullptr)
Make a selection.
GenericFilmicPresets
Defines tone mapping generic filmic presets.
vtkTimeStamp PriorityQueueBuildTimeStamp
Keeps track of the time when the priority-queue for streaming was generated.
Background
vtkBoundingBox GeometryBounds
virtual void SetPosition(int, int)
Set the position on this view in the multiview configuration.
vtkRenderer * NonCompositedRenderer
vtkWeakPointer< vtkPVCameraCollection > DiscreteCameras
bool UseDistributedRenderingForRender
int StillRenderImageReductionFactor
vtkPVCenterAxesActor * CenterAxes
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void StillRender()=0
Triggers a high-resolution render.
vtkPVCenterAxesActor is an actor for the center-axes used in ParaView.
port
#define const
Definition: zconf.h:238
Render View for ParaView.
interactive manipulation of the camera
vtkLightKit * LightKit
virtual void InteractiveRender()=0
Triggers a interactive render.
vtkSmartPointer< vtkRenderWindowInteractor > Interactor
vtkInteractorStyleRubberBand3D * RubberBandStyle
#define PARAVIEW_DEPRECATED_IN_5_11_0(reason)
vtkPVInteractorStyle * ThreeDInteractorStyle
ParaView extensions for vtkGridAxes3DActor.
helper to assist in determine process order when rendering
vtkTypeUInt32 InteractiveRenderProcesses