IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
GreyBarycenterMsrResults.h
1 // GreyBarycenterMsrResults.h:
3 // ---------------------------
4 //
15 
16 #ifndef __IPSDKIPLSHAPEANALYSIS_GREYBARYCENTERMSRRESULTS_H__
17 #define __IPSDKIPLSHAPEANALYSIS_GREYBARYCENTERMSRRESULTS_H__
18 
19 // suppression warning
20 // warning C4251: 'ipsdk::imaproc::shape::analysis::GreyBarycenterMsrResults::_coll': class 'std::vector<ipsdk::imaproc::shape::analysis::GreyBarycenterMsrResults::CollType,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'ipsdk::imaproc::shape::analysis::GreyBarycenterMsrResults'
21 #pragma warning (push)
22 #pragma warning (disable : 4251)
23 
25 #include <IPSDKBaseShapeAnalysis/Measure/Result/BaseCustomMeasureResult.h>
26 #include <IPSDKGeometry/Entity/3d/Point/Point3d.h>
27 
28 namespace ipsdk {
29 namespace imaproc {
30 namespace shape {
31 namespace analysis {
32 
35 
37 {
38  // declare serial class
40 
41 // predefined public type
42 public:
45 
47  typedef std::vector<ValueType> CollType;
48 
50  typedef std::vector<CollType> ColorCollType;
51 
52 public:
58 
59 // methods
60 public:
65  const CollType& getColl(const ipsdk::ipUInt64 cPlanIdx = 0) const;
66  CollType& getColl(const ipsdk::ipUInt64 cPlanIdx = 0);
68 
69 protected:
71  void initDerived(const ipsdk::ipUInt64 nbColorPlans,
72  const ipsdk::ipUInt64 nbEntities);
73 
76  void collectResultsDerived(const ipsdk::ipUInt64 resultStartIndex,
77  const ipsdk::shape::analysis::BaseMeasureResult& baseSubResults);
78  void collectResultsDerived(const ipsdk::UInt64Vector& subDataIdxColl,
79  const ipsdk::shape::analysis::BaseMeasureResult& baseSubResults);
81 
84  void extractResultsDerived(const ipsdk::ipUInt64 resultStartIndex,
85  const ipsdk::shape::analysis::BaseMeasureResult& baseMainResults);
86  void extractResultsDerived(const ipsdk::UInt64Vector& mainDataIdxColl,
87  const ipsdk::shape::analysis::BaseMeasureResult& baseMainResults);
89 
91  void clearDerived();
92 
93 // attributes
94 protected:
97 };
98 
101 
102 } // end of namespace analysis
103 } // end of namespace shape
104 } // end of namespace imaproc
105 } // end of namespace ipsdk
106 
107 #pragma warning (pop)
108 
109 #endif // __IPSDKIPLSHAPEANALYSIS_GREYBARYCENTERMSRRESULTS_H__
#define IPSDK_DECLARE_SERIAL_WITH_COPY(libraryName, className)
uint64_t ipUInt64
std::vector< ipUInt64 > UInt64Vector
ColorCollType _coll
result collection associated to object
Definition: GreyBarycenterMsrResults.h:96
Definition of import/export macro for library.
Measurement results object for measure GreyBarycenter.
Definition: GreyBarycenterMsrResults.h:36
std::vector< ValueType > CollType
collection type associated to object
Definition: GreyBarycenterMsrResults.h:47
std::vector< CollType > ColorCollType
color (by color plan) collection type associated to object
Definition: GreyBarycenterMsrResults.h:50
#define IPSDKIPLSHAPEANALYSIS_API
Import/Export macro for library IPSDKIPLShapeAnalysis.
Definition: IPSDKIPLShapeAnalysisExports.h:25
ipsdk::geom::Point3d< ipReal64 > ValueType
measure type associated to object
Definition: GreyBarycenterMsrResults.h:44