NDEVR
API Documentation
Collimator.h
1#pragma once
2#include <NDEVR/Model.h>
3#include <NDEVR/ApplicationResource.h>
4#include <NDEVR/Camera.h>
5namespace NDEVR
6{
10 class Collimator : public Model
11 {
12 public:
15 Collimator(const Model& model);
21 void setCameraFeed(const StringView& view) const;
25 public:
26 static constexpr StringView TypeName() { return "collimator"; }
28 private:
29 static Model* s_visual_model;
30 DynamicPointer<Camera> m_camera;
31 private:
33 void init();
34 };
35}
Collimator(const Model &model)
Constructs a Collimator from an existing Model.
StringView cameraFeed() const
Retrieves the camera feed identifier for this collimator.
void setCameraFeed(const StringView &view) const
Sets the camera feed identifier for this collimator.
static Resource< String > visual_model
Resource path to the 3D visual model for collimators.
Definition Collimator.h:27
static constexpr StringView TypeName()
The type name used to identify collimator models.
Definition Collimator.h:26
DynamicPointer< Camera > camera()
Returns the camera associated with this collimator.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
Model()
Default constructor. Creates an uninitialized Model.
Definition Model.h:365
A core part of the engine, stores variables that can be listened to with ResourceListener which will ...
Definition Resource.h:42
The core String View class for the NDEVR API.
Definition StringView.h:58
The primary namespace for the NDEVR SDK.