File PointCloud.h¶
File List > include > PointCloud.h
Go to the documentation of this file
//=============================================================================
// Copyright (c) 2026 FLIR Integrated Imaging Solutions, Inc. All Rights Reserved.
//
// This software is the confidential and proprietary information of FLIR
// Integrated Imaging Solutions, Inc. ("Confidential Information"). You
// shall not disclose such Confidential Information and shall use it only in
// accordance with the terms of the license agreement you entered into
// with FLIR Integrated Imaging Solutions, Inc. (FLIR).
//
// FLIR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
// SOFTWARE, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE, OR NON-INFRINGEMENT. FLIR SHALL NOT BE LIABLE FOR ANY DAMAGES
// SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
// THIS SOFTWARE OR ITS DERIVATIVES.
//=============================================================================
#ifndef FLIR_SPINNAKER_POINTCLOUD_H
#define FLIR_SPINNAKER_POINTCLOUD_H
#include "Interface/IPointCloud.h"
#include <vector>
#include <fstream>
#include <iostream>
#include <sstream>
#include "SpinnakerDefs.h"
namespace Spinnaker
{
class SPINNAKER_API PointCloud : public IPointCloud
{
public:
PointCloud();
~PointCloud();
PointCloud(const PointCloud& other);
PointCloud& operator=(const PointCloud& otherPointCloud);
void AddPoint(const Stereo3DPoint point);
Stereo3DPoint GetPoint(const unsigned int index) const;
size_t GetNumPoints() const;
void SavePointCloudAsPly(const std::string&) const;
void LoadPointCloudFromPly(const std::string& filename);
void PrintPoints(unsigned int numPointsToPrint) const;
void Clear();
protected:
friend class PointCloudImpl;
friend class ImageUtilityStereoImpl;
PointCloudData* GetPointCloudData() const;
private:
PointCloudData* m_pPointCloudData;
};
} // namespace Spinnaker
#endif // FLIR_SPINNAKER_POINTCLOUD_H