Remoting
Views
vtkSMImageExtractWriterProxy.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2
// SPDX-License-Identifier: BSD-3-Clause
14
#ifndef vtkSMImageExtractWriterProxy_h
15
#define vtkSMImageExtractWriterProxy_h
16
17
#include "
vtkRemotingViewsModule.h
"
// needed for exports
18
#include "
vtkSMExtractWriterProxy.h
"
19
#include "
vtkSMExtractsController.h
"
// for SummaryParametersT type
20
21
class
VTKREMOTINGVIEWS_EXPORT
vtkSMImageExtractWriterProxy
:
public
vtkSMExtractWriterProxy
22
{
23
public
:
24
static
vtkSMImageExtractWriterProxy
*
New
();
25
vtkTypeMacro(
vtkSMImageExtractWriterProxy
,
vtkSMExtractWriterProxy
);
26
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
27
29
32
bool
Write
(
vtkSMExtractsController
* extractor)
override
;
33
bool
CanExtract
(
vtkSMProxy
* proxy)
override
;
34
bool
IsExtracting
(
vtkSMProxy
* proxy)
override
;
35
void
SetInput
(
vtkSMProxy
* proxy)
override
;
36
vtkSMProxy
*
GetInput
()
override
;
38
39
enum
CameraMode
40
{
41
Static = 0,
42
PhiTheta = 1,
43
};
44
45
protected
:
46
vtkSMImageExtractWriterProxy
();
47
~
vtkSMImageExtractWriterProxy
()
override
;
48
49
void
CreateVTKObjects
()
override
;
50
51
using
SummaryParametersT
=
vtkSMExtractsController::SummaryParametersT
;
52
58
bool
WriteImage(
vtkSMExtractsController
* extractor,
59
const
SummaryParametersT
& cameraParams =
SummaryParametersT
{});
60
65
virtual
bool
WriteInternal(
66
vtkSMExtractsController
* extractor,
const
SummaryParametersT
& params =
SummaryParametersT
{});
67
72
virtual
const
char
* GetShortName(
const
std::string&
key
)
const
;
73
74
private
:
75
vtkSMImageExtractWriterProxy
(
const
vtkSMImageExtractWriterProxy
&) =
delete
;
76
void
operator=(
const
vtkSMImageExtractWriterProxy
&) =
delete
;
77
};
78
79
#endif
VTKREMOTINGVIEWS_EXPORT
#define VTKREMOTINGVIEWS_EXPORT
Definition:
vtkRemotingViewsModule.h:15
vtkSMExtractWriterProxy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkSMImageExtractWriterProxy
extract writer for images or rendering results
Definition:
vtkSMImageExtractWriterProxy.h:21
vtkSMExtractsController::SummaryParametersT
std::map< std::string, std::string > SummaryParametersT
Called by vtkSMExtractWriterProxy subclasses to add an entry to the summary table.
Definition:
vtkSMExtractsController.h:209
vtkSMExtractWriterProxy
abstract class defining extract writer proxy API
Definition:
vtkSMExtractWriterProxy.h:19
vtkSMExtractWriterProxy::GetInput
virtual vtkSMProxy * GetInput()=0
This is convenience method that gets called by vtkSMExtractsController to set the extract writer to e...
vtkSMExtractWriterProxy.h
vtkIndent
vtkSMExtractWriterProxy::IsExtracting
virtual bool IsExtracting(vtkSMProxy *proxy)=0
Returns true this extract writer proxy is generating and extract from the provided proxy...
vtkSMProxy::New
static vtkSMProxy * New()
vtkSMProxy::CreateVTKObjects
virtual void CreateVTKObjects()
Given a class name (by setting VTKClassName) and server ids (by setting ServerIDs), this methods instantiates the objects on the server(s)
vtkSMProxy
proxy for a VTK object(s) on a server
Definition:
vtkSMProxy.h:140
vtkRemotingViewsModule.h
vtkSMExtractWriterProxy::SetInput
virtual void SetInput(vtkSMProxy *proxy)=0
This is convenience method that gets called by vtkSMExtractsController to set the extract writer to e...
vtkSMExtractWriterProxy::Write
virtual bool Write(vtkSMExtractsController *extractor)=0
Generate the extract.
vtkSMImageExtractWriterProxy::CameraMode
CameraMode
Definition:
vtkSMImageExtractWriterProxy.h:39
vtkSMImageExtractWriterProxy::SummaryParametersT
vtkSMExtractsController::SummaryParametersT SummaryParametersT
Definition:
vtkSMImageExtractWriterProxy.h:51
vtkSMExtractsController.h
vtkSMExtractsController
controller for extract generation
Definition:
vtkSMExtractsController.h:45
vtkSMExtractWriterProxy::CanExtract
virtual bool CanExtract(vtkSMProxy *proxy)=0
Returns true if the provided proxy can be extracted/written by this writer.
key
key
Generated by
1.8.13 on Tue Oct 1 2024