15 #ifndef vtkPVRenderView_h 16 #define vtkPVRenderView_h 27 class vtkCameraOrientationWidget;
43 class vtkPolarAxesActor2D;
75 INTERACTION_MODE_UNINTIALIZED = -1,
76 INTERACTION_MODE_3D = 0,
80 INTERACTION_MODE_POLYGON
95 virtual void SetInteractionMode(
int mode);
96 vtkGetMacro(InteractionMode,
int);
104 void SetSize(
int,
int)
override;
114 vtkGetObjectMacro(NonCompositedRenderer,
vtkRenderer);
122 DEFAULT_RENDERER = 0,
123 NON_COMPOSITED_RENDERER = 1,
131 virtual vtkRenderer* GetRenderer(
int rendererType = DEFAULT_RENDERER);
139 virtual void SetActiveCamera(
vtkCamera*);
169 void ResetCamera(
double bounds[6]);
170 void ResetCameraScreenSpace(
double offsetRatio = 0.9);
171 void ResetCameraScreenSpace(
double* bounds,
double offsetRatio = 0.9);
183 double LastRepresentationVisibleBounds[6];
210 vtkSetMacro(SuppressRendering,
bool);
211 vtkGetMacro(SuppressRendering,
bool);
212 vtkBooleanMacro(SuppressRendering,
bool);
224 vtkSetClampMacro(StillRenderImageReductionFactor,
int, 1, 20);
225 vtkGetMacro(StillRenderImageReductionFactor,
int);
235 vtkSetClampMacro(InteractiveRenderImageReductionFactor,
int, 1, 20);
236 vtkGetMacro(InteractiveRenderImageReductionFactor,
int);
245 vtkSetMacro(RemoteRenderingThreshold,
double);
246 vtkGetMacro(RemoteRenderingThreshold,
double);
255 vtkSetMacro(LODRenderingThreshold,
double);
256 vtkGetMacro(LODRenderingThreshold,
double);
266 vtkSetClampMacro(LODResolution,
double, 0.0, 1.0);
267 vtkGetMacro(LODResolution,
double);
277 vtkSetMacro(UseOutlineForLODRendering,
bool);
278 vtkGetMacro(UseOutlineForLODRendering,
bool);
289 void ConfigureCompressor(
const char* configuration);
295 virtual void ResetCameraClippingRange();
302 void SetUseLightKit(
bool enable);
303 vtkGetMacro(UseLightKit,
bool);
304 vtkBooleanMacro(UseLightKit,
bool);
308 void StreamingUpdate(
const double view_planes[24]);
309 void DeliverStreamedPieces(
unsigned int size,
unsigned int* representation_ids);
366 void SelectCells(
int region[4],
const char* array =
nullptr);
367 void SelectCells(
int region0,
int region1,
int region2,
int region3,
const char* array =
nullptr)
369 int r[4] = { region0, region1, region2, region3 };
370 this->SelectCells(r, array);
372 void SelectPoints(
int region[4],
const char* array =
nullptr);
373 void SelectPoints(
int region0,
int region1,
int region2,
int region3,
const char* array =
nullptr)
375 int r[4] = { region0, region1, region2, region3 };
376 this->SelectPoints(r, array);
378 void Select(
int field_association,
int region[4],
const char* array =
nullptr);
392 void SelectPolygonPoints(
int* polygon2DArray,
vtkIdType arrayLen);
393 void SelectPolygonCells(
int* polygon2DArray,
vtkIdType arrayLen);
394 void SelectPolygon(
int field_association,
int* polygon2DArray,
vtkIdType arrayLen);
410 vtkSetMacro(UseInteractiveRenderingForScreenshots,
bool);
411 vtkBooleanMacro(UseInteractiveRenderingForScreenshots,
bool);
412 vtkGetMacro(UseInteractiveRenderingForScreenshots,
bool);
419 vtkGetMacro(RemoteRenderingAvailable,
bool);
427 void NVPipeAvailableOn();
428 void NVPipeAvailableOff();
435 vtkGetMacro(UsedLODForLastRender,
bool);
443 void InvalidateCachedSelection();
455 static void SetRedistributionMode(
457 static void SetRedistributionModeToSplitBoundaryCells(
459 static void SetRedistributionModeToDuplicateBoundaryCells(
461 static void SetRedistributionModeToUniquelyAssignBoundaryCells(
466 static void SetNextStreamedPiece(
502 USE_BOUNDS_FOR_REDISTRIBUTION = 0x01,
503 DATA_IS_REDISTRIBUTABLE = 0x02,
504 USE_DATA_FOR_LOAD_BALANCING = 0x40,
506 static void SetOrderedCompositingConfiguration(
vtkInformation* info,
514 void SetMaxClipBounds(
double bds[6]);
521 void SetLockBounds(
bool nv);
522 vtkGetMacro(LockBounds,
bool);
530 static void SetDeliverToAllProcesses(
542 static void SetDeliverToClientAndRenderingProcesses(
vtkInformation* info,
555 static void SetRequiresDistributedRendering(
577 static void SetForceDataDistributionMode(
vtkInformation* info,
int flag);
596 void SetShowAnnotation(
bool val);
597 vtkSetMacro(UpdateAnnotation,
bool);
604 void SetAnnotationColor(
double r,
double g,
double b);
620 virtual void SetPolarGridActor(vtkPolarAxesActor2D*);
626 virtual void SetOrientationAxesInteractivity(
bool);
627 virtual void SetOrientationAxesVisibility(
bool);
629 void SetOrientationAxesLabelColor(
double r,
double g,
double b);
630 void SetOrientationAxesOutlineColor(
double r,
double g,
double b);
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);
636 void SetOrientationAxesXVisibility(
bool vis);
637 void SetOrientationAxesYVisibility(
bool vis);
638 void SetOrientationAxesZVisibility(
bool vis);
640 void SetOrientationAxesXLabelText(
const char* text);
641 void SetOrientationAxesYLabelText(
const char* text);
642 void SetOrientationAxesZLabelText(
const char* text);
649 void SetCameraOrientationWidgetVisibility(
bool visible);
650 void SetCameraOrientationWidgetSize(
int size);
651 void SetCameraOrientationWidgetPadding(
int padding[2]);
652 void SetCameraOrientationWidgetAnchor(
int anchor);
658 virtual void SetCenterAxesVisibility(
bool);
660 virtual void SetCenterAxesXColor(
double r,
double g,
double b);
661 virtual void SetCenterAxesYColor(
double r,
double g,
double b);
662 virtual void SetCenterAxesZColor(
double r,
double g,
double b);
668 virtual void SetCenterOfRotation(
double x,
double y,
double z);
669 virtual void SetRotationFactor(
double factor);
676 void SetKeyLightWarmth(
double val);
677 void SetKeyLightIntensity(
double val);
678 void SetKeyLightElevation(
double val);
679 void SetKeyLightAzimuth(
double val);
680 void SetFillLightWarmth(
double val);
681 void SetKeyToFillRatio(
double val);
682 void SetFillLightElevation(
double val);
683 void SetFillLightAzimuth(
double val);
684 void SetBackLightWarmth(
double val);
685 void SetKeyToBackRatio(
double val);
686 void SetBackLightElevation(
double val);
687 void SetBackLightAzimuth(
double val);
688 void SetHeadLightWarmth(
double val);
689 void SetKeyToHeadRatio(
double val);
690 void SetMaintainLuminance(
int val);
697 vtkSetMacro(UseHiddenLineRemoval,
bool);
698 virtual void SetUseDepthPeeling(
int val);
699 virtual void SetUseDepthPeelingForVolumes(
bool val);
700 virtual void SetMaximumNumberOfPeels(
int val);
701 virtual void SetBackgroundTexture(
vtkTexture* val);
709 vtkSetMacro(UseRenderViewSettingsForBackground,
bool);
710 vtkGetMacro(UseRenderViewSettingsForBackground,
bool);
728 vtkSetClampMacro(BackgroundColorMode,
int, DEFAULT, STEREO_SKYBOX);
729 vtkSetVector3Macro(Background,
double);
730 vtkGetVector3Macro(Background,
double);
731 vtkSetVector3Macro(Background2,
double);
732 vtkGetVector3Macro(Background2,
double);
733 vtkSetMacro(UseEnvironmentLighting,
bool);
738 virtual void SetSkyboxRotation(
double x,
double y,
double z);
739 vtkGetVector3Macro(SkyboxRotation,
double);
746 virtual void SetEnvironmentalBG(
double r,
double g,
double b);
747 virtual void SetEnvironmentalBG2(
double r,
double g,
double b);
748 virtual void SetEnvironmentalBGTexture(
vtkTexture* val);
749 virtual void SetGradientEnvironmentalBG(
int val);
750 virtual void SetTexturedEnvironmentalBG(
int val);
751 virtual void SetBackgroundMode(
int val);
766 void SetStereoCapableWindow(
int val);
767 void SetStereoRender(
int val);
768 vtkSetMacro(StereoType,
int);
769 vtkSetMacro(ServerStereoType,
int);
770 void SetMultiSamples(
int val);
771 void SetAlphaBitPlanes(
int val);
772 void SetStencilCapable(
int val);
773 void SetPhysicalToWorldMatrix(
const double[16]);
779 void SetParallelProjection(
int mode);
785 virtual void SetCamera2DManipulators(
const int manipulators[9]);
786 virtual void SetCamera3DManipulators(
const int manipulators[9]);
788 virtual void SetReverseMouseWheelZoomDirection(
bool reverse);
789 virtual void SetMouseWheelZoomsToCursor(
bool value);
790 virtual void SetCamera2DMouseWheelMotionFactor(
double factor);
791 virtual void SetCamera3DMouseWheelMotionFactor(
double factor);
799 virtual void SynchronizeGeometryBounds();
813 virtual void UpdateLOD();
821 vtkGetMacro(UseLODForInteractiveRender,
bool);
830 vtkGetMacro(UseDistributedRenderingForRender,
bool);
839 vtkGetMacro(UseDistributedRenderingForLODRender,
bool);
848 vtkGetMacro(StillRenderProcesses, vtkTypeUInt32);
857 vtkGetMacro(InteractiveRenderProcesses, vtkTypeUInt32);
863 int GetDataDistributionMode(
bool low_res);
870 void Deliver(
int use_lod,
unsigned int size,
unsigned int* representation_ids)
override;
880 bool GetUseOrderedCompositing();
886 bool GetRenderEmptyImages();
892 vtkSetMacro(UseFXAA,
bool);
893 vtkGetMacro(UseFXAA,
bool);
900 void SetFXAARelativeContrastThreshold(
double val);
901 void SetFXAAHardContrastThreshold(
double val);
902 void SetFXAASubpixelBlendLimit(
double val);
903 void SetFXAASubpixelContrastThreshold(
double val);
904 void SetFXAAUseHighQualityEndpoints(
bool val);
905 void SetFXAAEndpointSearchIterations(
int val);
922 void SetUseToneMapping(
bool v);
923 vtkGetMacro(UseToneMapping,
bool);
924 void SetToneMappingType(
int);
925 void SetExposure(
double);
926 void SetContrast(
double);
927 void SetShoulder(
double);
928 void SetMidIn(
double);
929 void SetMidOut(
double);
930 void SetHdrMax(
double);
931 void SetUseACES(
bool);
932 void SetGenericFilmicPresets(
int t);
939 vtkSetMacro(UseSSAO,
bool);
940 vtkGetMacro(UseSSAO,
bool);
941 vtkSetMacro(UseSSAODefaultPresets,
bool);
942 vtkSetMacro(Radius,
double);
943 vtkSetMacro(KernelSize,
int);
944 vtkSetMacro(Bias,
double);
945 vtkSetMacro(Blur,
bool);
960 void AddPropToRenderer(
vtkProp* prop);
961 void RemovePropFromRenderer(
vtkProp* prop);
979 bool BeginValuePassForRendering(
int fieldAssociation,
const char* arrayName,
int component);
980 void EndValuePassForRendering();
988 void CaptureZBuffer();
998 void SetEnableSynchronizableActors(
bool);
999 bool GetEnableSynchronizableActors();
1006 void SetEnableOSPRay(
bool);
1007 bool GetEnableOSPRay();
1014 void SetEnableANARI(
bool);
1015 bool GetEnableANARI();
1022 void SetANARILibrary(std::string);
1023 const char* GetANARILibrary();
1030 void SetANARIRenderer(std::string);
1031 const char* GetANARIRenderer();
1046 std::string GetANARIRendererParameters();
1051 void SetANARIRendererParameter(
const std::string& name,
int type,
const std::string& value);
1058 void SetShadows(
bool);
1065 void SetAmbientOcclusionSamples(
int);
1066 int GetAmbientOcclusionSamples();
1072 void SetRouletteDepth(
int);
1073 int GetRouletteDepth();
1080 void SetSamplesPerPixel(
int);
1081 int GetSamplesPerPixel();
1087 void SetMaxFrames(
int);
1093 bool GetOSPRayContinueStreaming();
1098 void SetDenoise(
bool);
1106 void SetLightScale(
double);
1107 double GetLightScale();
1113 void SetOSPRayRendererType(std::string);
1118 void SetBackgroundNorth(
double x,
double y,
double z);
1119 void SetBackgroundEast(
double x,
double y,
double z);
1130 void SetTimeCacheSize(
int);
1131 int GetTimeCacheSize();
1161 static void SetDiscreteCameras(
1191 virtual void Render(
bool interactive,
bool skip_rendering);
1205 bool ShouldUseDistributedRendering(
double geometry_size,
bool using_lod);
1210 bool ShouldUseLODRendering(
double geometry);
1216 bool IsProcessRenderingGeometriesForCompositing(
bool using_distributed_rendering);
1227 virtual void UpdateCenterAxes();
1233 bool GetLocalProcessDoesRendering(
bool using_distributed_rendering);
1239 bool TestCollaborationCounter();
1245 void SynchronizeForCollaboration();
1251 virtual void BuildAnnotationText(ostream& str);
1258 vtkGetMacro(SynchronizationCounter,
unsigned int);
1265 vtkGetMacro(MakingSelection,
bool);
1272 virtual bool PrepareSelect(
int fieldAssociation,
const char* array =
nullptr);
1277 virtual void PostSelect(
vtkSelection* sel,
const char* array =
nullptr);
1283 virtual void UpdateBackground(
vtkRenderer* renderer =
nullptr);
1295 virtual void SetupAndSetRenderer(
vtkRenderer* ren);
1334 bool ReverseMouseWheelZoomDirection =
false;
1390 bool MakingSelection;
1391 int PreviousSwapBuffers;
1392 void OnSelectionChangedEvent();
1393 void OnPolygonSelectionEvent();
1401 void AddAnnotationToView(
vtkProp*);
1402 void RemoveAnnotationFromView(
vtkProp*);
1407 bool RemoteRenderingAvailable;
1410 bool DistributedRenderingRequired;
1411 bool NonDistributedRenderingRequired;
1412 bool DistributedRenderingRequiredLOD;
1413 bool NonDistributedRenderingRequiredLOD;
1416 int ParallelProjection;
1419 bool UseHiddenLineRemoval;
1422 vtkInternals* Internals;
1425 void UpdateAnnotationText();
1430 int ServerStereoType;
1431 void UpdateStereoProperties();
1433 int BackgroundColorMode;
1434 bool UseEnvironmentLighting;
1435 bool UseRenderViewSettingsForBackground;
1437 double Background2[3];
1438 double SkyboxRotation[3];
1443 int ForceDataDistributionMode;
1444 int PreviousDiscreteCameraIndex;
1446 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