Skip to content

Commit

Permalink
Documentation pass
Browse files Browse the repository at this point in the history
  • Loading branch information
returnString committed Jul 11, 2012
1 parent 39c36ac commit 343bac4
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ManagedFbx.Samples/FbxForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public partial class FbxForm : Form
public FbxForm()
{
InitializeComponent();
SetTitle("Untitled");
}

public void Add(SceneNode node, TreeNode parentNode)
Expand Down Expand Up @@ -104,6 +105,7 @@ private void LoadFile(object sender, EventArgs e)
m_scene = Scene.Import(scenePath);
uxFbxTree.Nodes.Clear();
Add(m_scene.RootNode, null);
SetTitle(scenePath);
}
}

Expand All @@ -119,6 +121,11 @@ private void SaveFile(object sender, EventArgs e)
}
}

private void SetTitle(string filename)
{
Text = "FbxForm - " + filename;
}

private Scene m_scene;
}

Expand Down
6 changes: 6 additions & 0 deletions ManagedFbx/Polygon.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@

namespace ManagedFbx
{
/// <summary>
/// Represents a polygon.
/// </summary>
public value struct Polygon
{
public:
/// <summary>
/// Gets the array of indices which make up this polygon.
/// </summary>
property_ri(array<int>^, Indices);

private:
Expand Down
37 changes: 36 additions & 1 deletion ManagedFbx/SceneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,55 @@ using namespace System::Collections::Generic;

namespace ManagedFbx
{
/// <summary>
/// Represents a single node in the FBX scene graph.
/// </summary>
public ref class SceneNode
{
public:
/// <summary>
/// Gets and sets the name of this node.
/// </summary>
property_rw(string^, Name);

/// <summary>
/// Gets the direct children of this node.
/// </summary>
property_r(IEnumerable<SceneNode^>^, ChildNodes);

/// <summary>
/// Gets a collection of FBX attributes for this node.
/// </summary>
property_r(IEnumerable<NodeAttribute^>^, Attributes);


/// <summary>
/// Gets and sets the position of this node.
/// </summary>
property_rw(Vector3, Position);

/// <summary>
/// Gets and sets the rotation of this node.
/// </summary>
property_rw(Vector3, Rotation);

/// <summary>
/// Gets and sets the scale of this node.
/// </summary>
property_rw(Vector3, Scale);

/// <summary>
/// Gets the first mesh attribute of this node if it exists, otherwise null.
/// </summary>
property_r(ManagedFbx::Mesh^, Mesh);

/// <summary>
/// Gets the first light attribute of this node if it exists, otherwise null.
/// </summary>
property_r(ManagedFbx::Light^, Light);

/// <summary>
/// Adds an existing node as a child of this node.
/// </summary>
void AddChild(SceneNode ^node);

internal:
Expand Down

0 comments on commit 343bac4

Please sign in to comment.