SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
ExtractContours.h
1 //=========================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //=========================================================================
10 
11 #ifndef smtk_session_polygon_ExtractContours_h
12 #define smtk_session_polygon_ExtractContours_h
13 
14 #include "smtk/session/polygon/Operation.h"
15 
16 namespace smtk
17 {
18 namespace session
19 {
20 namespace polygon
21 {
22 
31 class SMTKPOLYGONSESSION_EXPORT ExtractContours : public Operation
32 {
33 public:
38 
39  bool ableToOperate() override;
40 
41 protected:
42  Result operateInternal() override;
43  const char* xmlDescription() const override;
44 };
45 
46 } // namespace polygon
47 } // namespace session
48 } // namespace smtk
49 
50 #endif // smtk_session_polygon_ExtractContours_h
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
smtk::operation::Operation::Result
std::shared_ptr< smtk::attribute::Attribute > Result
An attribute containing the operation's result.
Definition: Operation.h:81
smtkCreateMacro
#define smtkCreateMacro(...)
Add static create() methods to a class.
Definition: SharedFromThis.h:195
smtkSharedFromThisMacro
#define smtkSharedFromThisMacro(...)
A macro to help with derived classes whose bases enable shared_from_this().
Definition: SharedFromThis.h:272
smtk::operation::Operation
Operation is a base class for all SMTK operations.
Definition: Operation.h:64
smtkTypeMacro
#define smtkTypeMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:150
smtk::session::polygon::ExtractContours
Create polygon edges from contours extraced from an image.
Definition: ExtractContours.h:31
smtkSuperclassMacro
#define smtkSuperclassMacro(...)
Add a typedef to the superclass of this class.
Definition: SharedFromThis.h:169
smtk::session::polygon::Operation
An operator using the polygon kernel.
Definition: Operation.h:38