OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimPointCloudSource.h
Go to the documentation of this file.
1 //**************************************************************************************************
2 //
3 // OSSIM (http://trac.osgeo.org/ossim/)
4 //
5 // License: MIT -- See LICENSE.txt file in the top level directory for more details.
6 //
7 //**************************************************************************************************
8 #ifndef ossimPointCloudSource_HEADER
9 #define ossimPointCloudSource_HEADER 1
10 
12 #include <ossim/base/ossimCommon.h> /* for ossim::isnan */
13 #include <ossim/base/ossimSource.h>
14 #include <ossim/base/ossimRefPtr.h>
15 #include <ossim/base/ossimGrect.h>
18 #include <vector>
19 
20 /***************************************************************************************************
21  * Base class for all Point Cloud data sources, including input file handlers and processing nodes.
22  **************************************************************************************************/
24 {
25 public:
27  virtual ~ossimPointCloudSource();
28 
34  virtual void getBlock(const ossimGrect& bounds, ossimPointBlock& block) const = 0;
35 
39  virtual ossim_uint32 getNumPoints() const = 0;
40 
45  virtual const ossimPointRecord* getMinPoint() const;
46  virtual const ossimPointRecord* getMaxPoint() const;
47 
54  virtual ossim_uint32 getFieldCode() const;
55 
60  virtual void setFieldCode (ossim_uint32 fieldCode);
61 
68  virtual bool hasFields(ossim_uint32 id) const { return getFieldCode()&id; }
69 
71  bool hasRGB() const
73 
74  virtual bool canConnectMyInputTo(ossim_int32, const ossimConnectableObject*) const;
75 
76 protected:
79 
81 };
82 
83 #endif /* #ifndef ossimPointCloudSource_HEADER */
#define OSSIMDLLEXPORT
#define TYPE_DATA
Definition: ossimRtti.h:339
unsigned int ossim_uint32
bool hasRGB() const
Special for convenience.
virtual bool canConnectMyInputTo(ossim_int32 myInputIndex, const ossimConnectableObject *object) const =0
required to be overriden by derived classes
virtual bool hasFields(ossim_uint32 id) const
Returns true if the data field is available from this source.
int ossim_int32