12 result = makeShared<CameraData>();
13 result->
camera = std::move(camera);
14 result->
tracker = std::move(tracker);
69 addResolutionCategory(connector,
gui);
74 addTrackingCategory(connector,
gui);
79 "orthographic camera",
82 [](
const std::string& name) {
return makeAuto<OrthoCameraJob>(name); },
83 "Creates an orthographic camera");
97 addResolutionCategory(connector,
gui);
102 addTrackingCategory(connector,
gui);
108 "perspective camera",
111 [](
const std::string& name) {
return makeAuto<PerspectiveCameraJob>(name); },
112 "Creates a perspective (pinhole) camera.");
126 addResolutionCategory(connector,
gui);
127 addTransformCategory(connector,
gui);
128 addTrackingCategory(connector,
gui);
136 [](
const std::string& name) {
return makeAuto<FisheyeCameraJob>(name); },
137 "Creates a fisheye camera.");
JobRegistrar sRegisterOrtho("orthographic camera", "camera", "rendering", [](const std::string &name) { return makeAuto< OrthoCameraJob >(name);}, "Creates an orthographic camera")
JobRegistrar sRegisterPerspective("perspective camera", "camera", "rendering", [](const std::string &name) { return makeAuto< PerspectiveCameraJob >(name);}, "Creates a perspective (pinhole) camera.")
JobRegistrar sRegisterFisheye("fisheye camera", "camera", "rendering", [](const std::string &name) { return makeAuto< FisheyeCameraJob >(name);}, "Creates a fisheye camera.")
double Float
Precision used withing the code. Use Float instead of float or double where precision is important.
VirtualSettings::Category & addGenericCategory(VirtualSettings &connector, std::string &instanceName)
Adds a common settings category, used by all jobs.
constexpr Float DEG_TO_RAD
#define NAMESPACE_SPH_END
BasicVector< Float > Vector
virtual VirtualSettings getSettings() override
Returns a settings object which allows to query and modify the state of the job.
FisheyeCameraJob(const std::string &name)
INLINE TValue get(const GuiSettingsId id) const
INLINE GuiSettings & set(const GuiSettingsId id, const TValue &value)
virtual void evaluate(const RunSettings &global, IRunCallbacks &callbacks) override
Runs the operation provided by the job.
Callbacks executed by the simulation to provide feedback to the user.
OrthoCameraJob(const std::string &name)
virtual VirtualSettings getSettings() override
Returns a settings object which allows to query and modify the state of the job.
PerspectiveCameraJob(const std::string &name)
virtual VirtualSettings getSettings() override
Returns a settings object which allows to query and modify the state of the job.
Variant, an implementation of type-safe union, similar to std::variant or boost::variant.
INLINE T & get()
Returns the stored value.
EntryControl & connect(const std::string &name, const std::string &key, TValue &value)
Connects to given reference.
Holds a map of virtual entries, associated with a unique name.
Category & addCategory(const std::string &name)
Creates a new category of entries.
@ CAMERA_ORTHO_CUTOFF
Max z-coordinate of particle to be displayed by ortho renderer.
@ CAMERA_ORTHO_FOV
View field of view (zoom). Special value 0 means the field of view is computed from the bounding box.
AutoPtr< ITracker > getTracker(const GuiSettings &settings)
AutoPtr< ICamera > getCamera(const GuiSettings &settings, const Pixel size)
AutoPtr< ITracker > tracker
AutoPtr< ICamera > camera
Helper class, allowing to register job into the global list of jobs.