WSF
SOSM_Selector.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI//REL TO USA ONLY
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef SOSM_SELECTOR_HPP
13#define SOSM_SELECTOR_HPP
14
15#include <string>
16#include <vector>
17
19
24{
25public:
27 // Using default copy constructor
28 // SOSM_Selector(const SOSM_Selector& aSrc);
29
30 SOSM_Selector(const SOSM_SpectralObject& aInputOutput);
31
41
42 static std::string StatusString(Status aStatus);
43
44 Status Intersect(const SOSM_SpectralObject& aInput, const SOSM_SpectralObject& aOutput);
45
46 void InitializeOutput(std::vector<float>& aOutput, float aValue) const;
47
49 float Origin() const { return mOrigin; }
50
52 float Increment() const { return mIncrement; }
53
55 int Count() const { return mCount; }
56
58 int InputStartIndex() const { return mInputStartIndex; }
59
61 int OutputStartIndex() const { return mOutputStartIndex; }
62
63private:
65 float mOrigin;
68 float mIncrement;
70 int mCount;
71
73 int mInputStartIndex;
75 int mOutputStartIndex;
77 int mOutputCount;
78};
79
80#endif
int Count() const
Returns the number of points in the intersection.
Definition SOSM_Selector.hpp:55
Status Intersect(const SOSM_SpectralObject &aInput, const SOSM_SpectralObject &aOutput)
Definition SOSM_Selector.cpp:81
void InitializeOutput(std::vector< float > &aOutput, float aValue) const
Definition SOSM_Selector.cpp:162
Status
Return value from 'Intersect'.
Definition SOSM_Selector.hpp:34
@ cINTERSECTS
Definition SOSM_Selector.hpp:35
@ cNO_INTERSECTION
Definition SOSM_Selector.hpp:39
@ cINCOMPATIBLE_ORIGINS
Definition SOSM_Selector.hpp:38
@ cOUTPUT_IS_CONTINUOUS
Definition SOSM_Selector.hpp:36
@ cINCOMPATIBLE_INCREMENTS
Definition SOSM_Selector.hpp:37
static std::string StatusString(Status aStatus)
Definition SOSM_Selector.cpp:48
float Origin() const
Return the origin (wavenumber of the first sample point) in the intersection.
Definition SOSM_Selector.hpp:49
int OutputStartIndex() const
Returns the index of the sample in point the output that corresponds to the Origin().
Definition SOSM_Selector.hpp:61
SOSM_Selector()
Default constructor.
Definition SOSM_Selector.cpp:21
int InputStartIndex() const
Returns the index of the sample point in the input that corresponds to the Origin().
Definition SOSM_Selector.hpp:58
float Increment() const
Returns the wavenumber increment between sample points.
Definition SOSM_Selector.hpp:52
Definition SOSM_SpectralObject.hpp:37
Copyrights Multiple, All Rights Reserved