ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
Polyline.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 // Local
11 #include "ReferenceCloud.h"
12 
13 namespace cloudViewer {
14 
16 
21 public:
23  explicit Polyline(GenericIndexedCloudPersist* associatedCloud);
24 
26  inline bool isClosed() const { return m_isClosed; }
27 
29  inline void setClosed(bool state) { m_isClosed = state; }
30 
31  // inherited from ReferenceCloud
32  void clear(bool unusedParam = true) override;
33 
34 protected:
36  bool m_isClosed;
37 };
38 
39 } // namespace cloudViewer
#define CV_CORE_LIB_API
Definition: CVCoreLibWin.h:15
A generic 3D point cloud with index-based and presistent access to points.
A simple polyline class.
Definition: Polyline.h:20
void setClosed(bool state)
Sets whether the polyline is closed or not.
Definition: Polyline.h:29
bool isClosed() const
Returns whether the polyline is closed or not.
Definition: Polyline.h:26
bool m_isClosed
Closing state.
Definition: Polyline.h:36
A very simple point cloud (no point duplication)
Generic file read and write utility for python interface.