15 #ifndef vtkPVRenderView_h 16 #define vtkPVRenderView_h 27 class vtkCameraOrientationWidget;
43 class vtkPolarAxesActor2D;
74 INTERACTION_MODE_UNINTIALIZED = -1,
75 INTERACTION_MODE_3D = 0,
79 INTERACTION_MODE_POLYGON
94 virtual void SetInteractionMode(
int mode);
95 vtkGetMacro(InteractionMode,
int);
103 void SetSize(
int,
int)
override;
113 vtkGetObjectMacro(NonCompositedRenderer,
vtkRenderer);
121 DEFAULT_RENDERER = 0,
122 NON_COMPOSITED_RENDERER = 1,
130 virtual vtkRenderer* GetRenderer(
int rendererType = DEFAULT_RENDERER);
138 virtual void SetActiveCamera(
vtkCamera*);
168 void ResetCamera(
double bounds[6]);
169 void ResetCameraScreenSpace(
double offsetRatio = 0.9);
170 void ResetCameraScreenSpace(
double* bounds,
double offsetRatio = 0.9);
182 double LastRepresentationVisibleBounds[6];
209 vtkSetMacro(SuppressRendering,
bool);
210 vtkGetMacro(SuppressRendering,
bool);
211 vtkBooleanMacro(SuppressRendering,
bool);
223 vtkSetClampMacro(StillRenderImageReductionFactor,
int, 1, 20);
224 vtkGetMacro(StillRenderImageReductionFactor,
int);
234 vtkSetClampMacro(InteractiveRenderImageReductionFactor,
int, 1, 20);
235 vtkGetMacro(InteractiveRenderImageReductionFactor,
int);
244 vtkSetMacro(RemoteRenderingThreshold,
double);
245 vtkGetMacro(RemoteRenderingThreshold,
double);
254 vtkSetMacro(LODRenderingThreshold,
double);
255 vtkGetMacro(LODRenderingThreshold,
double);
265 vtkSetClampMacro(LODResolution,
double, 0.0, 1.0);
266 vtkGetMacro(LODResolution,
double);
276 vtkSetMacro(UseOutlineForLODRendering,
bool);
277 vtkGetMacro(UseOutlineForLODRendering,
bool);
288 void ConfigureCompressor(
const char* configuration);
294 virtual void ResetCameraClippingRange();
301 void SetUseLightKit(
bool enable);
302 vtkGetMacro(UseLightKit,
bool);
303 vtkBooleanMacro(UseLightKit,
bool);
307 void StreamingUpdate(
const double view_planes[24]);
308 void DeliverStreamedPieces(
unsigned int size,
unsigned int* representation_ids);
365 void SelectCells(
int region[4],
const char* array =
nullptr);
366 void SelectCells(
int region0,
int region1,
int region2,
int region3,
const char* array =
nullptr)
368 int r[4] = { region0, region1, region2, region3 };
369 this->SelectCells(r, array);
371 void SelectPoints(
int region[4],
const char* array =
nullptr);
372 void SelectPoints(
int region0,
int region1,
int region2,
int region3,
const char* array =
nullptr)
374 int r[4] = { region0, region1, region2, region3 };
375 this->SelectPoints(r, array);
377 void Select(
int field_association,
int region[4],
const char* array =
nullptr);
391 void SelectPolygonPoints(
int* polygon2DArray,
vtkIdType arrayLen);
392 void SelectPolygonCells(
int* polygon2DArray,
vtkIdType arrayLen);
393 void SelectPolygon(
int field_association,
int* polygon2DArray,
vtkIdType arrayLen);
409 vtkSetMacro(UseInteractiveRenderingForScreenshots,
bool);
410 vtkBooleanMacro(UseInteractiveRenderingForScreenshots,
bool);
411 vtkGetMacro(UseInteractiveRenderingForScreenshots,
bool);
418 vtkGetMacro(RemoteRenderingAvailable,
bool);
426 void NVPipeAvailableOn();
427 void NVPipeAvailableOff();
434 vtkGetMacro(UsedLODForLastRender,
bool);
442 void InvalidateCachedSelection();
454 static void SetRedistributionMode(
456 static void SetRedistributionModeToSplitBoundaryCells(
458 static void SetRedistributionModeToDuplicateBoundaryCells(
460 static void SetRedistributionModeToUniquelyAssignBoundaryCells(
465 static void SetNextStreamedPiece(
501 USE_BOUNDS_FOR_REDISTRIBUTION = 0x01,
502 DATA_IS_REDISTRIBUTABLE = 0x02,
503 USE_DATA_FOR_LOAD_BALANCING = 0x40,
505 static void SetOrderedCompositingConfiguration(
vtkInformation* info,
513 void SetMaxClipBounds(
double bds[6]);
520 void SetLockBounds(
bool nv);
521 vtkGetMacro(LockBounds,
bool);
529 static void SetDeliverToAllProcesses(
541 static void SetDeliverToClientAndRenderingProcesses(
vtkInformation* info,
554 static void SetRequiresDistributedRendering(
576 static void SetForceDataDistributionMode(
vtkInformation* info,
int flag);
595 void SetShowAnnotation(
bool val);
596 vtkSetMacro(UpdateAnnotation,
bool);
603 void SetAnnotationColor(
double r,
double g,
double b);
619 virtual void SetPolarGridActor(vtkPolarAxesActor2D*);
625 virtual void SetOrientationAxesInteractivity(
bool);
626 virtual void SetOrientationAxesVisibility(
bool);
628 void SetOrientationAxesLabelColor(
double r,
double g,
double b);
629 void SetOrientationAxesOutlineColor(
double r,
double g,
double b);
631 void SetOrientationAxesXColor(
double r,
double g,
double b);
632 void SetOrientationAxesYColor(
double r,
double g,
double b);
633 void SetOrientationAxesZColor(
double r,
double g,
double b);
635 void SetOrientationAxesXVisibility(
bool vis);
636 void SetOrientationAxesYVisibility(
bool vis);
637 void SetOrientationAxesZVisibility(
bool vis);
639 void SetOrientationAxesXLabelText(
const char* text);
640 void SetOrientationAxesYLabelText(
const char* text);
641 void SetOrientationAxesZLabelText(
const char* text);
648 void SetCameraOrientationWidgetVisibility(
bool visible);
649 void SetCameraOrientationWidgetSize(
int size);
650 void SetCameraOrientationWidgetPadding(
int padding[2]);
651 void SetCameraOrientationWidgetAnchor(
int anchor);
657 virtual void SetCenterAxesVisibility(
bool);
659 virtual void SetCenterAxesXColor(
double r,
double g,
double b);
660 virtual void SetCenterAxesYColor(
double r,
double g,
double b);
661 virtual void SetCenterAxesZColor(
double r,
double g,
double b);
667 virtual void SetCenterOfRotation(
double x,
double y,
double z);
668 virtual void SetRotationFactor(
double factor);
675 void SetKeyLightWarmth(
double val);
676 void SetKeyLightIntensity(
double val);
677 void SetKeyLightElevation(
double val);
678 void SetKeyLightAzimuth(
double val);
679 void SetFillLightWarmth(
double val);
680 void SetKeyToFillRatio(
double val);
681 void SetFillLightElevation(
double val);
682 void SetFillLightAzimuth(
double val);
683 void SetBackLightWarmth(
double val);
684 void SetKeyToBackRatio(
double val);
685 void SetBackLightElevation(
double val);
686 void SetBackLightAzimuth(
double val);
687 void SetHeadLightWarmth(
double val);
688 void SetKeyToHeadRatio(
double val);
689 void SetMaintainLuminance(
int val);
696 vtkSetMacro(UseHiddenLineRemoval,
bool);
697 virtual void SetUseDepthPeeling(
int val);
698 virtual void SetUseDepthPeelingForVolumes(
bool val);
699 virtual void SetMaximumNumberOfPeels(
int val);
700 virtual void SetBackgroundTexture(
vtkTexture* val);
708 vtkSetMacro(UseRenderViewSettingsForBackground,
bool);
709 vtkGetMacro(UseRenderViewSettingsForBackground,
bool);
727 vtkSetClampMacro(BackgroundColorMode,
int, DEFAULT, STEREO_SKYBOX);
728 vtkSetVector3Macro(Background,
double);
729 vtkGetVector3Macro(Background,
double);
730 vtkSetVector3Macro(Background2,
double);
731 vtkGetVector3Macro(Background2,
double);
732 vtkSetMacro(UseEnvironmentLighting,
bool);
737 virtual void SetSkyboxRotation(
double x,
double y,
double z);
738 vtkGetVector3Macro(SkyboxRotation,
double);
745 virtual void SetEnvironmentalBG(
double r,
double g,
double b);
746 virtual void SetEnvironmentalBG2(
double r,
double g,
double b);
747 virtual void SetEnvironmentalBGTexture(
vtkTexture* val);
748 virtual void SetGradientEnvironmentalBG(
int val);
749 virtual void SetTexturedEnvironmentalBG(
int val);
750 virtual void SetBackgroundMode(
int val);
765 void SetStereoCapableWindow(
int val);
766 void SetStereoRender(
int val);
767 vtkSetMacro(StereoType,
int);
768 vtkSetMacro(ServerStereoType,
int);
769 void SetMultiSamples(
int val);
770 void SetAlphaBitPlanes(
int val);
771 void SetStencilCapable(
int val);
772 void SetPhysicalToWorldMatrix(
const double[16]);
778 void SetParallelProjection(
int mode);
784 virtual void SetCamera2DManipulators(
const int manipulators[9]);
785 virtual void SetCamera3DManipulators(
const int manipulators[9]);
787 virtual void SetReverseMouseWheelZoomDirection(
bool reverse);
788 virtual void SetMouseWheelZoomsToCursor(
bool value);
789 virtual void SetCamera2DMouseWheelMotionFactor(
double factor);
790 virtual void SetCamera3DMouseWheelMotionFactor(
double factor);
798 virtual void SynchronizeGeometryBounds();
812 virtual void UpdateLOD();
820 vtkGetMacro(UseLODForInteractiveRender,
bool);
829 vtkGetMacro(UseDistributedRenderingForRender,
bool);
838 vtkGetMacro(UseDistributedRenderingForLODRender,
bool);
847 vtkGetMacro(StillRenderProcesses, vtkTypeUInt32);
856 vtkGetMacro(InteractiveRenderProcesses, vtkTypeUInt32);
862 int GetDataDistributionMode(
bool low_res);
869 void Deliver(
int use_lod,
unsigned int size,
unsigned int* representation_ids)
override;
879 bool GetUseOrderedCompositing();
885 bool GetRenderEmptyImages();
891 vtkSetMacro(UseFXAA,
bool);
892 vtkGetMacro(UseFXAA,
bool);
899 void SetFXAARelativeContrastThreshold(
double val);
900 void SetFXAAHardContrastThreshold(
double val);
901 void SetFXAASubpixelBlendLimit(
double val);
902 void SetFXAASubpixelContrastThreshold(
double val);
903 void SetFXAAUseHighQualityEndpoints(
bool val);
904 void SetFXAAEndpointSearchIterations(
int val);
921 void SetUseToneMapping(
bool v);
922 vtkGetMacro(UseToneMapping,
bool);
923 void SetToneMappingType(
int);
924 void SetExposure(
double);
925 void SetContrast(
double);
926 void SetShoulder(
double);
927 void SetMidIn(
double);
928 void SetMidOut(
double);
929 void SetHdrMax(
double);
930 void SetUseACES(
bool);
931 void SetGenericFilmicPresets(
int t);
938 vtkSetMacro(UseSSAO,
bool);
939 vtkGetMacro(UseSSAO,
bool);
940 vtkSetMacro(UseSSAODefaultPresets,
bool);
941 vtkSetMacro(Radius,
double);
942 vtkSetMacro(KernelSize,
int);
943 vtkSetMacro(Bias,
double);
944 vtkSetMacro(Blur,
bool);
959 void AddPropToRenderer(
vtkProp* prop);
960 void RemovePropFromRenderer(
vtkProp* prop);
978 bool BeginValuePassForRendering(
int fieldAssociation,
const char* arrayName,
int component);
979 void EndValuePassForRendering();
987 void CaptureZBuffer();
997 void SetEnableSynchronizableActors(
bool);
998 bool GetEnableSynchronizableActors();
1005 void SetEnableOSPRay(
bool);
1006 bool GetEnableOSPRay();
1013 void SetEnableANARI(
bool);
1014 bool GetEnableANARI();
1021 void SetANARILibrary(std::string);
1022 const char* GetANARILibrary();
1029 void SetANARIRenderer(std::string);
1030 const char* GetANARIRenderer();
1037 void SetShadows(
bool);
1044 void SetAmbientOcclusionSamples(
int);
1045 int GetAmbientOcclusionSamples();
1051 void SetRouletteDepth(
int);
1052 int GetRouletteDepth();
1059 void SetSamplesPerPixel(
int);
1060 int GetSamplesPerPixel();
1066 void SetMaxFrames(
int);
1072 bool GetOSPRayContinueStreaming();
1077 void SetDenoise(
bool);
1085 void SetLightScale(
double);
1086 double GetLightScale();
1092 void SetOSPRayRendererType(std::string);
1097 void SetBackgroundNorth(
double x,
double y,
double z);
1098 void SetBackgroundEast(
double x,
double y,
double z);
1109 void SetTimeCacheSize(
int);
1110 int GetTimeCacheSize();
1140 static void SetDiscreteCameras(
1170 virtual void Render(
bool interactive,
bool skip_rendering);
1184 bool ShouldUseDistributedRendering(
double geometry_size,
bool using_lod);
1189 bool ShouldUseLODRendering(
double geometry);
1195 bool IsProcessRenderingGeometriesForCompositing(
bool using_distributed_rendering);
1206 virtual void UpdateCenterAxes();
1212 bool GetLocalProcessDoesRendering(
bool using_distributed_rendering);
1218 bool TestCollaborationCounter();
1224 void SynchronizeForCollaboration();
1230 virtual void BuildAnnotationText(ostream& str);
1237 vtkGetMacro(SynchronizationCounter,
unsigned int);
1244 vtkGetMacro(MakingSelection,
bool);
1251 virtual bool PrepareSelect(
int fieldAssociation,
const char* array =
nullptr);
1256 virtual void PostSelect(
vtkSelection* sel,
const char* array =
nullptr);
1262 virtual void UpdateBackground(
vtkRenderer* renderer =
nullptr);
1274 virtual void SetupAndSetRenderer(
vtkRenderer* ren);
1313 bool ReverseMouseWheelZoomDirection =
false;
1369 bool MakingSelection;
1370 int PreviousSwapBuffers;
1371 void OnSelectionChangedEvent();
1372 void OnPolygonSelectionEvent();
1380 void AddAnnotationToView(
vtkProp*);
1381 void RemoveAnnotationFromView(
vtkProp*);
1386 bool RemoteRenderingAvailable;
1389 bool DistributedRenderingRequired;
1390 bool NonDistributedRenderingRequired;
1391 bool DistributedRenderingRequiredLOD;
1392 bool NonDistributedRenderingRequiredLOD;
1395 int ParallelProjection;
1398 bool UseHiddenLineRemoval;
1401 vtkInternals* Internals;
1404 void UpdateAnnotationText();
1409 int ServerStereoType;
1410 void UpdateStereoProperties();
1412 int BackgroundColorMode;
1413 bool UseEnvironmentLighting;
1414 bool UseRenderViewSettingsForBackground;
1416 double Background2[3];
1417 double SkyboxRotation[3];
1422 int ForceDataDistributionMode;
1423 int PreviousDiscreteCameraIndex;
1425 bool UseTexturedEnvironmentalBG;
static void SetRequiresDistributedRenderingLOD(vtkInformation *info, vtkPVDataRepresentation *repr, bool value)
Some representation only work when remote rendering or local rendering.
vtkSmartPointer< vtkPolarAxesActor2D > PolarAxesActor
vtkPVInteractorStyle * InteractorStyle
coordinates rendering between corresponding renderers across multiple processes
vtkPVInteractorStyle * TwoDInteractorStyle
vtkSelection * LastSelection
vtkSmartPointer< vtkPVHardwareSelector > Selector
bool UseOutlineForLODRendering
#define VTKREMOTINGVIEWS_EXPORT
virtual void SetViewTime(double value)
Get/Set the time this view is showing.
bool UseLODForInteractiveRender
manages visual material definitions
vtkPVDataRepresentation adds some ParaView specific API to data representations.
vtkRenderViewBase * RenderView
virtual void AboutToRenderOnLocalProcess(bool interactive)
Called just before the local process renders.
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...
virtual void ScaleRendererViewports(const double viewport[4])
vtkViewLayout calls this method to update the total viewport available for this view.
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.
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.
vtkSmartPointer< vtkLegendScaleActor > LegendGridActor
virtual void SetSize(int, int)
Set the size of this view in the multiview configuration.
bool UseInteractiveRenderingForScreenshots
vtkNew< vtkFXAAOptions > FXAAOptions
bool UseSSAODefaultPresets
bool IsForceDataDistributionModeSet() const
This is an temporary/experimental option and may be removed without notice.
vtkTypeUInt32 StillRenderProcesses
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.
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.
bool NeedsOrderedCompositing
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
bool UsedLODForLastRender
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.
Render View for ParaView.
interactive manipulation of the camera
virtual void InteractiveRender()=0
Triggers a interactive render.
vtkSmartPointer< vtkRenderWindowInteractor > Interactor
vtkInteractorStyleRubberBand3D * RubberBandStyle
vtkPVInteractorStyle * ThreeDInteractorStyle
ParaView extensions for vtkGridAxesActor3D.
helper to assist in determine process order when rendering
vtkTypeUInt32 InteractiveRenderProcesses