本文整理汇总了C++中PluginRegistrar类的典型用法代码示例。如果您正苦于以下问题:C++ PluginRegistrar类的具体用法?C++ PluginRegistrar怎么用?C++ PluginRegistrar使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PluginRegistrar类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: XSILoadPlugin
SICALLBACK XSILoadPlugin( PluginRegistrar& in_reg )
{
in_reg.PutAuthor(L"Svyatoslav Shumikhin");
in_reg.PutName(L"AppLink_3DCoat_Plugin");
in_reg.PutVersion(1,5);
in_reg.PutHelp("http://www.3d-coat.com/forum/index.php");
//RegistrationInsertionPoint - do not remove this line
// Register commands for importing and exporting a polygon mesh
in_reg.RegisterCommand(L"Coat3DExport");
in_reg.RegisterCommand(L"Coat3DImport");
in_reg.RegisterEvent(L"siOnActivateEvent",siOnActivate);
// Install a top-level menu for the import/export tool
in_reg.RegisterMenu(siMenuMainTopLevelID, L"AppLink_3DCoat", false,false);
in_reg.RegisterMenu(siMenuMainFileExportID,"Export3DCoatMenu",false);
in_reg.RegisterMenu(siMenuMainFileImportID,"Import3DCoatMenu",false);
// Register a custom property to use as the import/export UI
in_reg.RegisterProperty(L"AppLink_3DCoat");
return CStatus::OK;
}
示例2: XSILoadPlugin
XSIPLUGINCALLBACK CStatus XSILoadPlugin( PluginRegistrar& in_reg )
{
in_reg.PutAuthor(L"hmathee");
in_reg.PutName(L"sixcpp_lattice Plugin");
in_reg.PutEmail(L"");
in_reg.PutURL(L"");
in_reg.PutVersion(1,0);
Register_nest_ArrayNode( in_reg );
Register_nest_LatticeNode( in_reg );
return CStatus::OK;
}
示例3: XSIUnloadPlugin
XSIPLUGINCALLBACK CStatus XSIUnloadPlugin( const PluginRegistrar& in_reg )
{
CString strPluginName;
strPluginName = in_reg.GetName();
Application().LogMessage(strPluginName + L" has been unloaded.",siVerboseMsg);
return CStatus::OK;
}
示例4: Register_MOM_AddToCluster
CStatus Register_MOM_AddToCluster( PluginRegistrar& in_reg )
{
ICENodeDef nodeDef;
nodeDef = Application().GetFactory().CreateICENodeDef(L"MOM_AddToCluster",L"MOM_AddToCluster");
CStatus st;
st = nodeDef.PutColor(255,188,102);
st.AssertSucceeded( ) ;
st = nodeDef.PutThreadingModel(XSI::siICENodeSingleThreading);
st.AssertSucceeded( ) ;
// Add input ports and groups.
st = nodeDef.AddPortGroup(ID_G_100);
st.AssertSucceeded( ) ;
st = nodeDef.AddInputPort(ID_IN_base,ID_G_100,siICENodeDataLong,siICENodeStructureSingle,siICENodeContextComponent0D,L"base",L"base",0,0,1000000,ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
st = nodeDef.AddInputPort(ID_IN_id,ID_G_100,siICENodeDataLong,siICENodeStructureSingle,siICENodeContextComponent0D,L"id",L"id",0,0,1000000,ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
st = nodeDef.AddInputPort(ID_IN_cluster,ID_G_100,siICENodeDataLong,siICENodeStructureSingle,siICENodeContextComponent0D,L"cluster",L"cluster",0,0,1000000,ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
// Add output ports.
st = nodeDef.AddOutputPort(ID_OUT_base,siICENodeDataLong,siICENodeStructureSingle,siICENodeContextComponent0D,L"outbase",L"outbase",ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
PluginItem nodeItem = in_reg.RegisterICENode(nodeDef);
nodeItem.PutCategories(L"Custom ICENode");
return CStatus::OK;
}
示例5: Register_nest_ArrayNode
CStatus Register_nest_ArrayNode( PluginRegistrar& in_reg )
{
ICENodeDef nodeDef;
nodeDef = Application().GetFactory().CreateICENodeDef(L"nest_GetPositionArray");
CStatus st;
st = nodeDef.PutThreadingModel(XSI::siICENodeSingleThreading);
st.AssertSucceeded( ) ;
// Add input ports and groups.
st = nodeDef.AddPortGroup(Array_ID_G_100);
st.AssertSucceeded( ) ;
st = nodeDef.AddInputPort(Array_ID_IN_Vector,Array_ID_G_100,siICENodeDataVector3,siICENodeStructureSingle,siICENodeContextAny,L"Vector",L"Vector",CVector3f(0,0,0),Array_ID_UNDEF,Array_ID_UNDEF,Array_ID_CTXT_CNS);
st.AssertSucceeded( ) ;
// Add output ports and groups.
st = nodeDef.AddPortGroup(Array_ID_G_300);
st.AssertSucceeded( ) ;
st = nodeDef.AddOutputPort(Array_ID_OUT_Result,Array_ID_G_300,siICENodeDataVector3,siICENodeStructureArray,siICENodeContextSingleton,L"Array",L"Array",Array_ID_UNDEF,Array_ID_UNDEF,Array_ID_UNDEF);
st.AssertSucceeded( ) ;
PluginItem nodeItem = in_reg.RegisterICENode(nodeDef);
nodeItem.PutCategories(L"Array");
return CStatus::OK;
}
示例6: XSIUnloadPlugin
SICALLBACK XSIUnloadPlugin( const PluginRegistrar& in_reg )
{
CString strPluginName;
strPluginName = in_reg.GetName();
app.LogMessage(strPluginName + L" has been unloaded.",siVerboseMsg);
return CStatus::OK;
}
示例7: Register_MOM_GetContactPoints
CStatus Register_MOM_GetContactPoints( PluginRegistrar& in_reg )
{
ICENodeDef nodeDef;
nodeDef = Application().GetFactory().CreateICENodeDef(L"MOM_GetContactPoints",L"MOM_GetContactPoints");
CStatus st;
st = nodeDef.PutColor(255,188,102);
st.AssertSucceeded( ) ;
st = nodeDef.PutThreadingModel(XSI::siICENodeSingleThreading);
st.AssertSucceeded( ) ;
// Add input ports and groups.
st = nodeDef.AddPortGroup(ID_G_100);
st.AssertSucceeded( ) ;
st = nodeDef.AddInputPort(ID_IN_mode,ID_G_100,siICENodeDataLong,siICENodeStructureSingle,siICENodeContextSingleton,L"mode",L"mode",0,0,2,ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
st = nodeDef.AddInputPort(ID_IN_minImpulse_id,ID_G_100,siICENodeDataFloat,siICENodeStructureSingle,siICENodeContextSingleton,L"minImpulse",L"minImpulse",1,0,1000,ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
// Add output ports.
st = nodeDef.AddOutputPort(ID_OUT_Contacts,siICENodeDataMatrix33,siICENodeStructureArray,siICENodeContextSingleton,L"Contacts",L"Contacts",ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
PluginItem nodeItem = in_reg.RegisterICENode(nodeDef);
nodeItem.PutCategories(L"Custom ICENode");
return CStatus::OK;
}
示例8: Register
CStatus VDB_Node_VolumeToMesh::Register(PluginRegistrar& reg)
{
ICENodeDef nodeDef;
Factory factory = Application().GetFactory();
nodeDef = factory.CreateICENodeDef(L"VDB_Node_VolumeToMesh", L"Volume To Mesh");
CStatus st;
st = nodeDef.PutColor(110, 110, 110);
st.AssertSucceeded();
st = nodeDef.PutThreadingModel(siICENodeSingleThreading);
st.AssertSucceeded();
// Add custom types definition
st = nodeDef.DefineCustomType(L"vdb_prim" ,L"VDB Grid",
L"openvdb grid type", 155, 21, 10);
st.AssertSucceeded();
// Add input ports and groups.
st = nodeDef.AddPortGroup(kGroup1);
st.AssertSucceeded();
// Add custom type names.
CStringArray customTypes(1);
customTypes[0] = L"vdb_prim";
// stupid default arguments wont work have to add ULONG_MAX
st = nodeDef.AddInputPort(kVDBGrid, kGroup1, customTypes,
siICENodeStructureSingle, siICENodeContextSingleton,
L"VDB Grid", L"inVDBGrid",ULONG_MAX,ULONG_MAX,ULONG_MAX);
st.AssertSucceeded();
st = nodeDef.AddInputPort(kIsoValue, kGroup1, siICENodeDataFloat,
siICENodeStructureSingle, siICENodeContextSingleton,
L"Iso Value", L"isoValue", 0.0);
st.AssertSucceeded();
st = nodeDef.AddInputPort(kAdaptivity, kGroup1, siICENodeDataFloat,
siICENodeStructureSingle, siICENodeContextSingleton,
L"Adaptivity", L"adaptivity", 0.0);
st.AssertSucceeded();
// Add output ports.
st = nodeDef.AddOutputPort(kPointArray, siICENodeDataVector3,
siICENodeStructureArray, siICENodeContextSingleton,
L"Point Array", L"pointList");
st.AssertSucceeded();
st = nodeDef.AddOutputPort(kPolygonArray, siICENodeDataLong,
siICENodeStructureArray, siICENodeContextSingleton,
L"Polygon Array", L"polygonPoolList");
st.AssertSucceeded();
PluginItem nodeItem = reg.RegisterICENode(nodeDef);
nodeItem.PutCategories(L"OpenVDB");
return CStatus::OK;
}
示例9: XSIUnloadPlugin
SICALLBACK XSIUnloadPlugin( const PluginRegistrar& in_reg )
{
deleteAllArchives();
CString strPluginName;
strPluginName = in_reg.GetName();
Application().LogMessage(strPluginName + L" has been unloaded.",siVerboseMsg);
return CStatus::OK;
}
示例10: Register
CStatus VDB_Node_FBM::Register(PluginRegistrar& reg)
{
ICENodeDef nodeDef;
Factory factory = Application().GetFactory();
nodeDef = factory.CreateICENodeDef(L"VDB_Node_FBM", L"VDB FBM");
CStatus st;
st = nodeDef.PutColor(110, 110, 110);
st.AssertSucceeded();
st = nodeDef.PutThreadingModel(siICENodeSingleThreading);
st.AssertSucceeded();
// Add custom types definition
st = nodeDef.DefineCustomType(L"vdb_prim" ,L"VDB Grid",
L"openvdb grid type", 155, 21, 10);
st.AssertSucceeded();
// Add input ports and groups.
st = nodeDef.AddPortGroup(kGroup1);
st.AssertSucceeded();
// Add custom type names.
CStringArray customTypes(1);
customTypes[0] = L"vdb_prim";
st = nodeDef.AddInputPort(kInVDBGrid, kGroup1,
customTypes, siICENodeStructureSingle, siICENodeContextSingleton,
L"In", L"inVDBGrid",ULONG_MAX,ULONG_MAX,ULONG_MAX);
st.AssertSucceeded();
st = nodeDef.AddInputPort(kOctaves, kGroup1, siICENodeDataLong,
siICENodeStructureSingle, siICENodeContextSingleton,
L"Octaves", L"octaves", CValue(6));
st.AssertSucceeded();
st = nodeDef.AddInputPort(kLacunarity, kGroup1, siICENodeDataFloat,
siICENodeStructureSingle, siICENodeContextSingleton,
L"Lacunarity", L"lacunarity", CValue(2.0));
st.AssertSucceeded();
st = nodeDef.AddInputPort(kGain, kGroup1, siICENodeDataFloat,
siICENodeStructureSingle, siICENodeContextSingleton,
L"Gain", L"gain", CValue(0.5));
st.AssertSucceeded();
st = nodeDef.AddOutputPort(kOutVDBGrid, customTypes,
siICENodeStructureSingle, siICENodeContextSingleton,
L"Out", L"outVDBGrid");
st.AssertSucceeded();
PluginItem nodeItem = reg.RegisterICENode(nodeDef);
nodeItem.PutCategories(L"OpenVDB");
return CStatus::OK;
}
示例11: RegisterToonixCurve
CStatus RegisterToonixCurve(PluginRegistrar& in_reg)
{
ICENodeDef nodeDef;
nodeDef = Application().GetFactory().CreateICENodeDef(L"ToonixCurve", L"ToonixCurve");
CStatus st;
st = nodeDef.PutColor(ToonixNodeR, ToonixNodeG, ToonixNodeB);
st.AssertSucceeded();
st = nodeDef.PutThreadingModel(siICENodeSingleThreading);
st.AssertSucceeded();
// Add custom types definition.
st = nodeDef.DefineCustomType(L"ToonixLine", L"ToonixLine", L"ToonixLine", ToonixLineR, ToonixLineG, ToonixLineB);
st.AssertSucceeded();
// Add input ports and groups.
st = nodeDef.AddPortGroup(ID_G_100);
st.AssertSucceeded();
st = nodeDef.AddInputPort(ID_IN_Curves, ID_G_100, siICENodeDataGeometry, siICENodeStructureSingle, siICENodeContextSingleton, L"Curves", L"Curves");
st.AssertSucceeded();
st = nodeDef.AddInputPort(ID_IN_ViewPosition, ID_G_100, siICENodeDataVector3, siICENodeStructureAny, siICENodeContextSingleton, L"ViewPoint", L"ViewPoint");
st.AssertSucceeded();
st = nodeDef.AddInputPort(ID_IN_Width, ID_G_100, siICENodeDataFloat, siICENodeStructureSingle, siICENodeContextSingleton, L"Width", L"Width", 0.1);
st.AssertSucceeded();
st = nodeDef.AddInputPort(ID_IN_BreakAngle, ID_G_100, siICENodeDataFloat, siICENodeStructureSingle, siICENodeContextSingleton, L"BreakAngle", L"BreakAngle", 90.0);
st.AssertSucceeded();
st = nodeDef.AddInputPort(ID_IN_Extend, ID_G_100, siICENodeDataFloat, siICENodeStructureSingle, siICENodeContextSingleton, L"Extend", L"Extend", 0.0);
st.AssertSucceeded();
st = nodeDef.AddInputPort(ID_IN_FilterPoints, ID_G_100, siICENodeDataFloat, siICENodeStructureSingle, siICENodeContextSingleton, L"FilterPoints", L"FilterPoints", 0.0);
st.AssertSucceeded();
st = nodeDef.AddInputPort(ID_IN_Smooth, ID_G_100, siICENodeDataBool, siICENodeStructureSingle, siICENodeContextSingleton, L"SmoothSilhouette", L"SmoothSilhouette", true);
st.AssertSucceeded();
// Add output ports.
CStringArray ToonixLineCustomType(1);
ToonixLineCustomType[0] = L"ToonixLine";
st = nodeDef.AddOutputPort(ID_OUT_ToonixLine, ToonixLineCustomType, siICENodeStructureSingle, siICENodeContextSingleton, L"ToonixLine", L"ToonixLine", ID_UNDEF, ID_UNDEF, ID_CTXT_CNS);
st.AssertSucceeded();
PluginItem nodeItem = in_reg.RegisterICENode(nodeDef);
nodeItem.PutCategories(L"Toonix");
return CStatus::OK;
}
示例12: Register_MOM_GetAttributes
CStatus Register_MOM_GetAttributes( PluginRegistrar& in_reg )
{
ICENodeDef nodeDef;
nodeDef = Application().GetFactory().CreateICENodeDef(L"MOM_GetAttributes",L"MOM_GetAttributes");
CStatus st;
st = nodeDef.PutColor(255,188,102);
st.AssertSucceeded( ) ;
st = nodeDef.PutThreadingModel(XSI::siICENodeSingleThreading);
st.AssertSucceeded( ) ;
// Add input ports and groups.
st = nodeDef.AddPortGroup(ID_G_100);
st.AssertSucceeded( ) ;
st = nodeDef.AddInputPort(ID_IN_base,ID_G_100,siICENodeDataLong,siICENodeStructureSingle,siICENodeContextComponent0D,L"base",L"base",0,0,1000000,ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
st = nodeDef.AddInputPort(ID_IN_id,ID_G_100,siICENodeDataLong,siICENodeStructureSingle,siICENodeContextComponent0D,L"id",L"id",0,0,1000000,ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
// Add output ports.
st = nodeDef.AddOutputPort(ID_OUT_position,siICENodeDataVector3,siICENodeStructureSingle,siICENodeContextComponent0D,L"position",L"position",ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
st = nodeDef.AddOutputPort(ID_OUT_orientation,siICENodeDataVector3,siICENodeStructureSingle,siICENodeContextComponent0D,L"orientation",L"orientation",ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
st = nodeDef.AddOutputPort(ID_OUT_linvelocity,siICENodeDataVector3,siICENodeStructureSingle,siICENodeContextComponent0D,L"linvelocity",L"linvelocity",ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
st = nodeDef.AddOutputPort(ID_OUT_angvelocity,siICENodeDataVector3,siICENodeStructureSingle,siICENodeContextComponent0D,L"angvelocity",L"angvelocity",ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
st = nodeDef.AddOutputPort(ID_OUT_state,siICENodeDataLong,siICENodeStructureSingle,siICENodeContextComponent0D,L"state",L"state",ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
st = nodeDef.AddOutputPort(ID_OUT_mass,siICENodeDataFloat,siICENodeStructureSingle,siICENodeContextComponent0D,L"mass",L"mass",ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
st = nodeDef.AddOutputPort(ID_OUT_bounce,siICENodeDataFloat,siICENodeStructureSingle,siICENodeContextComponent0D,L"bounce",L"bounce",ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
st = nodeDef.AddOutputPort(ID_OUT_friction,siICENodeDataFloat,siICENodeStructureSingle,siICENodeContextComponent0D,L"friction",L"friction",ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
st = nodeDef.AddOutputPort(ID_OUT_lindamping,siICENodeDataFloat,siICENodeStructureSingle,siICENodeContextComponent0D,L"lindamping",L"lindamping",ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
st = nodeDef.AddOutputPort(ID_OUT_angdamping,siICENodeDataFloat,siICENodeStructureSingle,siICENodeContextComponent0D,L"angdamping",L"angdamping",ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
st = nodeDef.AddOutputPort(ID_OUT_lintreshold,siICENodeDataFloat,siICENodeStructureSingle,siICENodeContextComponent0D,L"lintreshold",L"lintreshold",ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
st = nodeDef.AddOutputPort(ID_OUT_angtreshold,siICENodeDataFloat,siICENodeStructureSingle,siICENodeContextComponent0D,L"angtreshold",L"angtreshold",ID_UNDEF,ID_UNDEF,ID_CTXT_CNS);
st.AssertSucceeded( ) ;
PluginItem nodeItem = in_reg.RegisterICENode(nodeDef);
nodeItem.PutCategories(L"Custom ICENode");
return CStatus::OK;
}
示例13: XSILoadPlugin
/* Plugin ロードエントリ */
XSIPLUGINCALLBACK CStatus XSILoadPlugin( PluginRegistrar& in_reg )
{
in_reg.PutAuthor(L"oyaG");
in_reg.PutName(L"GMenuPlugin");
in_reg.PutEmail(L"");
in_reg.PutURL(L"");
in_reg.PutVersion(1,0);
in_reg.RegisterCommand(L"GMenu",L"GMenu");
//RegistrationInsertionPoint - do not remove this line
Application().LogMessage(in_reg.GetName() + L" is loading.",siVerboseMsg);
return CStatus::OK;
}
示例14: XSILoadPlugin_2
SICALLBACK XSILoadPlugin_2( PluginRegistrar& in_reg ) {
in_reg.PutAuthor(L"Exocortex Technologies, Inc.");
in_reg.PutName(L"HeavyLoadTest");
in_reg.PutVersion(1,0);
in_reg.RegisterCommand(L"exocortex_run_test",L"exocortex_run_test");
in_reg.RegisterOperator(L"exocortex_nop");
in_reg.RegisterMenu(siMenuMainFileProjectID,L"exocortex_RunTest",false,false);
return CStatus::OK;
}
示例15: XSILoadPlugin
XSIPLUGINCALLBACK CStatus XSILoadPlugin( PluginRegistrar& in_reg )
{
in_reg.PutAuthor(L"Morten Nobel-Joergensen / Vaida Laganeckiene");
in_reg.PutName(L"WebGL Export Plug-in");
in_reg.PutVersion(1,0);
// Register commands for importing and exporting a polygon mesh
in_reg.RegisterCommand(L"WebGLExportScene");
// Install a top-level menu for the import/export tool
in_reg.RegisterMenu(siMenuMainTopLevelID, L"WebGL Export", false,false);
// Register a custom property to use as the import/export UI
in_reg.RegisterProperty(L"WebGLExportProp");
return CStatus::OK;
}