API Documentation
Loading...
Searching...
No Matches
NavigationMarkerModel.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/CoordinateOptions.h>
4#include <NDEVR/DesignSettings.h>
5#include <NDEVR/Model.h>
6#include <NDEVR/FileResource.h>
7#if NDEVR_NAVIGATION_MARKER_MODEL
8namespace NDEVR
9{
10 class NDEVR_DESIGN_API NavigationMarkerModel : public Model
11 {
12 public:
13 NavigationMarkerModel();//invalid
14 NavigationMarkerModel(const Model& model);
15 Vertex<3, fltp08> target() const;
16 Vertex<3, fltp08> position() const;
17 void clearTarget(const void* lock = nullptr);
18 void setTarget(Vertex<3, fltp08> target, bool ignore_elevation = true, const void* lock = nullptr);
19 void setPosition(Vertex<3, fltp08> location, bool ignore_elevation = true, const void* lock = nullptr);
20 void loadModel();
21 void setPositionModelColor(RGBColor color, const void* lock = nullptr);
22 Model targetMarker() const;
23 Model currentLocationMarker() const;
24 protected:
25 void updateTargetDistance(bool ignore_elevation) const;
26 Vector<3, fltp08> normalSize() const;
27 static constexpr const char* TypeName() { return "navigation_marker"; }
28 protected:
29 static DynamicPointer<Model> s_deployment_model;
30 };
31}
32#endif
#define NDEVR_DESIGN_API
Definition DLLInfo.h:77
Definition ACIColor.h:37