fbxsdk/scene/geometry/fbxline.h Source File

fbxline.h
Go to the documentation of this file.
1 /****************************************************************************************
2 
3  Copyright (C) 2015 Autodesk, Inc.
4  All rights reserved.
5 
6  Use of this software is subject to the terms of the Autodesk license agreement
7  provided at the time of installation or download, or which otherwise accompanies
8  this software in either electronic or hard copy form.
9 
10 ****************************************************************************************/
11 
13 #ifndef _FBXSDK_SCENE_GEOMETRY_LINE_H_
14 #define _FBXSDK_SCENE_GEOMETRY_LINE_H_
15 
16 #include <fbxsdk/fbxsdk_def.h>
17 
20 
21 #include <fbxsdk/fbxsdk_nsbegin.h>
22 
35 {
37 
38 public:
43 
47  void Reset();
48 
52  void SetIndexArraySize(int pCount);
53 
57  int GetIndexArraySize() const;
58 
62  inline FbxArray<int>* GetIndexArray() { return &mPointArray;}
63 
70  bool SetPointIndexAt(int pValue, int pIndex, bool pAsEndPoint = false);
71 
76  int GetPointIndexAt(int pIndex) const;
77 
83  bool AddPointIndex(int pValue, bool pAsEndPoint = false);
84 
88  inline FbxArray<int>* GetEndPointArray() { return &mEndPointArray;}
89 
108  bool AddEndPoint(int pPointIndex);
109 
125  int GetEndPointAt(int pEndPointIndex) const;
126 
130  int GetEndPointCount() const;
131 
136 
137 /*****************************************************************************************************************************
138 ** WARNING! Anything beyond these lines is for internal use, may not be documented and is subject to change without notice! **
139 *****************************************************************************************************************************/
140 #ifndef DOXYGEN_SHOULD_SKIP_THIS
141  virtual FbxObject& Copy(const FbxObject& pObject);
142 
143 protected:
144  virtual void Construct(const FbxObject* pFrom);
145  virtual void ConstructProperties(bool pForceSet);
146  virtual void Destruct(bool pRecursive);
147 
148 private:
149  FbxArray<int> mPointArray;
150  FbxArray<int> mEndPointArray;
151 #endif /* !DOXYGEN_SHOULD_SKIP_THIS *****************************************************************************************/
152 };
153 
154 #include <fbxsdk/fbxsdk_nsend.h>
155 
156 #endif /* _FBXSDK_SCENE_GEOMETRY_LINE_H_ */
#define FBXSDK_OBJECT_DECLARE(Class, Parent)
Macro used to declare a new class derived from FbxObject.
Definition: fbxobject.h:61
FbxPropertyT< FbxBool > Renderable
This property decide whether this line is renderable in 3DSMax.
Definition: fbxline.h:135
FBX SDK environment definition.
virtual FbxObject & Copy(const FbxObject &pObject)
Copy an object content into this object.
EType
Node attribute types.
virtual FbxNodeAttribute::EType GetAttributeType() const
Returns the node attribute type.
FbxArray< int > * GetIndexArray()
Get the pointer to the index array.
Definition: fbxline.h:62
The base class of most FBX objects.
Definition: fbxobject.h:157
virtual void Construct(const FbxObject *pFrom)
Optional constructor override, automatically called by default constructor.
#define FBXSDK_DLL
Definition: fbxarch.h:173
The base class of geometric objects that support control point deformations (e.g. ...
Definition: fbxgeometry.h:45
virtual void Destruct(bool pRecursive)
Optional destructor override, automatically called by default destructor.
FbxArray< int > * GetEndPointArray()
Get the pointer to the end point array.
Definition: fbxline.h:88
virtual void ConstructProperties(bool pForceSet)
Optional property constructor override, automatically called by default constructor.
A line is a geometry made of points.
Definition: fbxline.h:34