Instrument Neutral Distributed Interface INDI  1.9.5
DummyMathPlugin.cpp
Go to the documentation of this file.
1 
5 #include "DummyMathPlugin.h"
6 
7 namespace INDI
8 {
9 namespace AlignmentSubsystem
10 {
11 // Standard functions required for all plugins
12 extern "C" {
14 {
15  return new DummyMathPlugin;
16 }
17 
18 void Destroy(DummyMathPlugin *pPlugin)
19 {
20  delete pPlugin;
21 }
22 
23 const char *GetDisplayName()
24 {
25  return "Dummy Math Plugin";
26 }
27 }
28 
30 {
31  //ctor
32 }
33 
35 {
36  //dtor
37 }
38 
40 {
41  // Call the base class to initialise to in in memory database pointer
43 
44  return false;
45 }
46 
47 bool DummyMathPlugin::TransformCelestialToTelescope(const double RightAscension, const double Declination,
48  double JulianOffset,
49  TelescopeDirectionVector &ApparentTelescopeDirectionVector)
50 {
51  return false;
52 }
53 
54 bool DummyMathPlugin::TransformTelescopeToCelestial(const TelescopeDirectionVector &ApparentTelescopeDirectionVector,
55  double &RightAscension, double &Declination)
56 {
57  return false;
58 }
59 
60 } // namespace AlignmentSubsystem
61 } // namespace INDI
INDI::AlignmentSubsystem::GetDisplayName
const char * GetDisplayName()
Definition: DummyMathPlugin.cpp:23
INDI::AlignmentSubsystem::DummyMathPlugin::DummyMathPlugin
DummyMathPlugin()
Definition: DummyMathPlugin.cpp:29
INDI::AlignmentSubsystem::DummyMathPlugin::~DummyMathPlugin
virtual ~DummyMathPlugin()
Definition: DummyMathPlugin.cpp:34
INDI::AlignmentSubsystem::MathPlugin::Initialise
virtual bool Initialise(InMemoryDatabase *pInMemoryDatabase)
Initialise or re-initialise the math plugin. Re-reading the in memory database as necessary.
Definition: MathPlugin.cpp:15
INDI::AlignmentSubsystem::DummyMathPlugin
Definition: DummyMathPlugin.h:11
DummyMathPlugin.h
INDI::AlignmentSubsystem::Destroy
void Destroy(DummyMathPlugin *pPlugin)
Definition: DummyMathPlugin.cpp:18
INDI::AlignmentSubsystem::DummyMathPlugin::TransformTelescopeToCelestial
virtual bool TransformTelescopeToCelestial(const TelescopeDirectionVector &ApparentTelescopeDirectionVector, double &RightAscension, double &Declination)
Get the true celestial coordinates for the supplied telescope pointing direction.
Definition: DummyMathPlugin.cpp:54
INDI::AlignmentSubsystem::InMemoryDatabase
This class provides the driver side API to the in memory alignment database.
Definition: InMemoryDatabase.h:23
INDI::AlignmentSubsystem::MathPlugin::pInMemoryDatabase
InMemoryDatabase * pInMemoryDatabase
Definition: MathPlugin.h:80
INDI::AlignmentSubsystem::DummyMathPlugin::Initialise
virtual bool Initialise(InMemoryDatabase *pInMemoryDatabase)
Initialise or re-initialise the math plugin. Re-reading the in memory database as necessary.
Definition: DummyMathPlugin.cpp:39
INDI::AlignmentSubsystem::DummyMathPlugin::TransformCelestialToTelescope
virtual bool TransformCelestialToTelescope(const double RightAscension, const double Declination, double JulianOffset, TelescopeDirectionVector &ApparentTelescopeDirectionVector)
Get the alignment corrected telescope pointing direction for the supplied celestial coordinates.
Definition: DummyMathPlugin.cpp:47
INDI::AlignmentSubsystem::Create
DummyMathPlugin * Create()
Definition: DummyMathPlugin.cpp:13
INDI
Namespace to encapsulate INDI client, drivers, and mediator classes.
Definition: AlignmentSubsystemForClients.cpp:11
INDI::AlignmentSubsystem::TelescopeDirectionVector
Holds a nomalised direction vector (direction cosines)
Definition: Common.h:68