using System;
using System.Xml;
using CDAColladaNET.Import.Attributes;
// Copyright (c) 2005 Accelerated Pictures, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
namespace ColladaNET.Import{
public class Technique : ColladaNode
{
#region Constants
private static readonly string kProfile = "@profile";
private static readonly string kAccessors = "dae:accessor";
private static readonly string kCombiners = "dae:combiner";
private static readonly string kImagers = "dae:imager";
private static readonly string kInputs = "dae:input";
private static readonly string kJoints = "dae:joint";
private static readonly string kOptics = "dae:optics";
private static readonly string kParams = "dae:param";
private static readonly string kPasses = "dae:pass";
private static readonly string kPrograms = "dae:program";
#endregion
#region Accessors
#region Profile
private bool mbProfile = false;
private string mProfile;
public string Profile
{
get
{
if ( mbProfile == false )
{
mProfile = XmlSource.SelectSingleNode( kProfile , Collada.NS ).Value ;
mbProfile = true;
}
return mProfile;
}
}
#endregion
private CDA.AccessorsAttr mAccessors;
public CDA.AccessorsAttr Accessors { get { return mAccessors; } }
private CDA.CombinersAttr mCombiners;
public CDA.CombinersAttr Combiners { get { return mCombiners; } }
private CDA.ImagersAttr mImagers;
public CDA.ImagersAttr Imagers { get { return mImagers; } }
private CDA.InputsAttr mInputs;
public CDA.InputsAttr Inputs { get { return mInputs; } }
private CDA.JointsAttr mJoints;
public CDA.JointsAttr Joints { get { return mJoints; } }
private CDA.OpticsAttr mOptics;
public CDA.OpticsAttr Optics { get { return mOptics; } }
private CDA.ParamsAttr mParams;
public CDA.ParamsAttr Params { get { return mParams; } }
private CDA.PassesAttr mPasses;
public CDA.PassesAttr Passes { get { return mPasses; } }
private CDA.ProgramsAttr mPrograms;
public CDA.ProgramsAttr Programs { get { return mPrograms; } }
#endregion
#region Constructors
public Technique( XmlNode source ) : base( source )
{
mAccessors = new CDA.AccessorsAttr( source , kAccessors );
mCombiners = new CDA.CombinersAttr( source , kCombiners );
mImagers = new CDA.ImagersAttr( source , kImagers );
mInputs = new CDA.InputsAttr( source , kInputs );
mJoints = new CDA.JointsAttr( source , kJoints );
mOptics = new CDA.OpticsAttr( source , kOptics );
mParams = new CDA.ParamsAttr( source , kParams );
mPasses = new CDA.PassesAttr( source , kPasses );
mPrograms = new CDA.ProgramsAttr( source , kPrograms );
}
#endregion
}
}
|