Cortex  10.0.0-a4
FromMayaSkinClusterConverter.h
1 //
3 // Copyright (c) 2008-2011, Image Engine Design Inc. All rights reserved.
4 //
5 // Copyright 2010 Dr D Studios Pty Limited (ACN 127 184 954) (Dr. D Studios),
6 // its affiliates and/or its licensors.
7 //
8 // Redistribution and use in source and binary forms, with or without
9 // modification, are permitted provided that the following conditions are
10 // met:
11 //
12 // * Redistributions of source code must retain the above copyright
13 // notice, this list of conditions and the following disclaimer.
14 //
15 // * Redistributions in binary form must reproduce the above copyright
16 // notice, this list of conditions and the following disclaimer in the
17 // documentation and/or other materials provided with the distribution.
18 //
19 // * Neither the name of Image Engine Design nor the names of any
20 // other contributors to this software may be used to endorse or
21 // promote products derived from this software without specific prior
22 // written permission.
23 //
24 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
25 // IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
26 // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
27 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
28 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
30 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
31 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
32 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
33 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
34 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 //
37 
38 #ifndef IECOREMAYA_FROMMAYASKINCLUSTERCONVERTER_H
39 #define IECOREMAYA_FROMMAYASKINCLUSTERCONVERTER_H
40 
41 #include "IECoreMaya/FromMayaObjectConverter.h"
42 
43 #include "IECore/CompoundParameter.h"
44 #include "IECoreMaya/FromMayaDagNodeConverter.h"
45 #include "IECore/NumericParameter.h"
46 #include "IECore/TypedParameter.h"
47 
48 
49 namespace IECoreMaya
50 {
51 
52 IE_CORE_FORWARDDECLARE( FromMayaSkinClusterConverter );
53 
58 {
59 
60  public :
61 
62  FromMayaSkinClusterConverter( const MObject &object );
63 
64  IE_CORE_DECLARERUNTIMETYPEDEXTENSION( FromMayaSkinClusterConverter, FromMayaSkinClusterConverterTypeId, FromMayaObjectConverter );
65 
66  enum InfluenceName
67  {
68  Partial = 0,
69  Full = 1
70  };
71 
72  IECore::IntParameterPtr influenceNameParameter();
73  IECore::ConstIntParameterPtr influenceNameParameter() const;
74 
75 
76  protected :
77 
78  virtual IECore::ObjectPtr doConversion( const MObject &object, IECore::ConstCompoundObjectPtr operands ) const;
79 
80  private :
81 
82  IECore::IntParameterPtr m_influenceNameParameter;
83 
84  static FromMayaObjectConverterDescription<FromMayaSkinClusterConverter> m_description;
85 
86 };
87 
88 IE_CORE_DECLAREPTR( FromMayaSkinClusterConverter );
89 
90 } // namespace IECoreMaya
91 
92 #endif // IECOREMAYA_FROMMAYASKINCLUSTERCONVERTER_H
Definition: FromMayaObjectConverter.h:53
Definition: FromMayaSkinClusterConverter.h:57
The IECoreMaya namespace holds all the functionality of libIECoreMaya.
Definition: BoolParameterHandler.h:44
virtual IECore::ObjectPtr doConversion(const MObject &object, IECore::ConstCompoundObjectPtr operands) const