Free Electron
MeshSeparateOp.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __maya_MeshSeparateOp_h__
8 #define __maya_MeshSeparateOp_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Separate a multi-part mesh into multiple separate meshes
17 
18  @ingroup maya
19 *//***************************************************************************/
20 class FE_DL_EXPORT MeshSeparateOp:
21  public OperatorSurfaceCommon,
22  public Initialize<MeshSeparateOp>
23 {
24  public:
25 
26  MeshSeparateOp(void) {}
27 virtual ~MeshSeparateOp(void) {}
28 
29  void initialize(void);
30 
31  //* As HandlerI
32 virtual void handle(Record& a_rSignal);
33 
34  private:
35 
36  struct StringNumber
37  {
38  StringNumber(void) {}
39 
40  StringNumber& operator=(String a_string);
41 
42  struct Sort
43  {
44  bool operator()(const StringNumber& rStringNumber1,
45  const StringNumber& rStringNumber2);
46  };
47 
48  String print(void);
49 
50  String m_prefix;
51  BWORD m_hasNumber;
52  I32 m_number;
53  };
54 
55  struct StringSort
56  {
57  bool operator()(const String& rString1,const String& rString2)
58  {
59  return (rString1.compare(rString2)<0);
60  }
61  };
62 };
63 
64 } /* namespace ext */
65 } /* namespace fe */
66 
67 #endif /* __maya_MeshSeparateOp_h__ */
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
I32 compare(const String &operand) const
Standard string compare: returns -1, 0, or 1 if the string is alphabetically less than...
Definition: String.h:734
Automatically reference-counted string container.
Definition: String.h:128
Partial Generic SurfaceI Implemention.
Definition: OperatorSurfaceCommon.h:20
Separate a multi-part mesh into multiple separate meshes.
Definition: MeshSeparateOp.h:20
Reference to an instance of a Layout.
Definition: RecordSB.h:35