00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #include "SIM_ElectricalProperties.h"
00029 #include <UT/UT_DSOVersion.h>
00030 #include <PRM/PRM_Include.h>
00031 #include <SIM/SIM_PRMShared.h>
00032 #include <SIM/SIM_DopDescription.h>
00033
00034 using namespace HDK_Sample;
00035
00036 void
00037 initializeSIM(void *)
00038 {
00039 IMPLEMENT_DATAFACTORY(SIM_ElectricalProperties);
00040 }
00041
00042 SIM_ElectricalProperties::SIM_ElectricalProperties(const SIM_DataFactory *factory)
00043 : BaseClass(factory),
00044 SIM_OptionsUser(this)
00045 {
00046 }
00047
00048 SIM_ElectricalProperties::~SIM_ElectricalProperties()
00049 {
00050 }
00051
00052 const SIM_DopDescription *
00053 SIM_ElectricalProperties::getElectricalPropertiesDopDescription()
00054 {
00055 static PRM_Name theResistanceName(HDK_NAME_RESISTANCE, "Resistance");
00056 static PRM_Name theCapacitanceName(HDK_NAME_CAPACITANCE, "Capacitance");
00057 static PRM_Name theInductanceName(HDK_NAME_INDUCTANCE, "Inductance");
00058
00059 static PRM_Template theTemplates[] = {
00060 PRM_Template(PRM_FLT_J, 1, &theResistanceName, PRMoneDefaults),
00061 PRM_Template(PRM_FLT_J, 1, &theCapacitanceName, PRMzeroDefaults),
00062 PRM_Template(PRM_FLT_J, 1, &theInductanceName, PRMzeroDefaults),
00063 PRM_Template()
00064 };
00065
00066 static SIM_DopDescription theDopDescription(true,
00067 "hdk_electricalproperties",
00068 "Electrical Properties",
00069 "ElectricalProperties",
00070 classname(),
00071 theTemplates);
00072
00073 return &theDopDescription;
00074 }