本文整理汇总了C++中Set_Name函数的典型用法代码示例。如果您正苦于以下问题:C++ Set_Name函数的具体用法?C++ Set_Name怎么用?C++ Set_Name使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Set_Name函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
//---------------------------------------------------------
CTable_Load::CTable_Load(void)
{
Set_Name (_TL("Import Table"));
Set_Author ("O.Conrad (c) 2013");
Set_Description (_TW(
"Imports a table from a PostgreSQL database."
));
Parameters.Add_Table("",
"TABLE" , _TL("Table"),
_TL(""),
PARAMETER_OUTPUT
);
Parameters.Add_Choice("",
"TABLES" , _TL("Tables"),
_TL(""),
""
);
}
示例2:
//---------------------------------------------------------
CPoints_From_MultiPoints::CPoints_From_MultiPoints(void)
{
Set_Name (_TL("Convert Multipoints to Points"));
Set_Author (_TL("O.Conrad (c) 2011"));
Set_Description (_TW(
"Converts multipoints to points. "
));
Parameters.Add_Shapes(
NULL , "MULTIPOINTS" , _TL("Multipoints"),
_TL(""),
PARAMETER_INPUT, SHAPE_TYPE_Points
);
Parameters.Add_Shapes(
NULL , "POINTS" , _TL("Points"),
_TL(""),
PARAMETER_OUTPUT, SHAPE_TYPE_Point
);
}
示例3:
//---------------------------------------------------------
CGrid_Fill::CGrid_Fill(void)
{
Set_Name (_TL("Change Grid Values - Flood Fill"));
Set_Author ("O.Conrad (c) 2018");
Set_Description (_TW(
"A flood fill algorithm will be used for replacement of grid cell values "
"starting at the positions of the input points. "
"If one or more points are selected, only these will be processed, otherwise all. "
"If the target grid is not set, the changes will be applied to the original grid. "
));
//-----------------------------------------------------
Parameters.Add_Shapes("",
"POINTS" , _TL("Points"),
_TL(""),
PARAMETER_INPUT, SHAPE_TYPE_Point
);
Parameters_Add(Parameters);
}
示例4: Olaya
//---------------------------------------------------------
CSelection_Copy::CSelection_Copy(void)
{
Set_Name (_TL("Copy Selection to New Shapes Layer"));
Set_Author (SG_T("Victor Olaya (c) 2004"));
Set_Description (_TW(
"Copies selected shapes to a new shapes layer."
));
Parameters.Add_Shapes(
NULL , "INPUT" , _TL("Input"),
_TL(""),
PARAMETER_INPUT
);
Parameters.Add_Shapes(
NULL , "OUTPUT" , _TL("Output"),
_TL(""),
PARAMETER_OUTPUT
);
}
示例5: Set_Name
//---------------------------------------------------------
CGrid_Gaps::CGrid_Gaps(void)
{
//-----------------------------------------------------
Set_Name(_TL("Close Gaps"));
Set_Author (SG_T("(c) 2002 by O.Conrad"));
Set_Description (_TW(
"Close gaps of a grid data set (i.e. eliminate no data values). "
"If the target is not set, the changes will be stored to the original grid. ")
);
//-----------------------------------------------------
Parameters.Add_Grid(
NULL, "INPUT" , _TL("Grid"),
_TL(""),
PARAMETER_INPUT
);
Parameters.Add_Grid(
NULL, "MASK" , _TL("Mask"),
_TL(""),
PARAMETER_INPUT_OPTIONAL
);
Parameters.Add_Grid(
NULL, "RESULT" , _TL("Changed Grid"),
_TL(""),
PARAMETER_OUTPUT_OPTIONAL
);
//-----------------------------------------------------
Parameters.Add_Value(
NULL, "THRESHOLD" , _TL("Tension Threshold"),
_TL(""), PARAMETER_TYPE_Double, 0.1
);
}
示例6:
//---------------------------------------------------------
CShapes_Load::CShapes_Load(void)
{
Set_Name (_TL("Import Shapes from PostGIS"));
Set_Author (SG_T("O.Conrad (c) 2013"));
Set_Description (_TW(
"Imports shapes from a PostGIS database."
));
Parameters.Add_Shapes(
NULL , "SHAPES" , _TL("Shapes"),
_TL(""),
PARAMETER_OUTPUT
);
Parameters.Add_Choice(
NULL , "TABLES" , _TL("Tables"),
_TL(""),
""
);
}
示例7: rate
//---------------------------------------------------------
Ctest_stream_power_model::Ctest_stream_power_model(void)
{
Set_Name (_TL("Test Stream Power Model"));
Set_Author (SG_T("J. D. Pelletier 2008, J. Tunnicliffe and S. Masoud-Ansari 2014-2015"));
Set_Description (_TW(
"Modified C code from Pelletier 2008: Quantitative Modelling of Earth Surface Processes.\n"
"Converted to C++ for use with SAGA GIS."
));
Parameters.Add_Grid(
NULL, "INPUT" , _TL("Input"),
_TL("This must be your input data of type grid."),
PARAMETER_INPUT
);
Parameters.Add_Grid(
NULL, "OUTPUT" , _TL("Output"),
_TL("This will contain your output data of type grid."),
PARAMETER_OUTPUT
);
Parameters.Add_Value(
NULL , "U" , _TL("U"),
_TL("Uplift rate (m/kyr)"),
PARAMETER_TYPE_Double, 1.0);
Parameters.Add_Value(
NULL , "K" , _TL("K"),
_TL("Advection coefficient K (1/kyr)"),
PARAMETER_TYPE_Double, 0.05);
Parameters.Add_Value(
NULL , "DURATION" , _TL("Timesteps"),
_TL("Simulaiton duration (kyrs)"),
PARAMETER_TYPE_Double, 2.0);
}
示例8:
//---------------------------------------------------------
CTable_Info::CTable_Info(void)
{
Set_Name (_TL("List Table Fields"));
Set_Author (SG_T("O.Conrad (c) 2010"));
Set_Description (_TW(
"Loads table information from ODBC data source."
));
Parameters.Add_Table(
NULL , "TABLE" , _TL("Field Description"),
_TL(""),
PARAMETER_OUTPUT
);
Parameters.Add_Choice(
NULL , "TABLES" , _TL("Tables"),
_TL(""),
""
);
}
示例9: Destroy
//---------------------------------------------------------
bool CSG_MetaData::Assign(const CSG_MetaData &MetaData, bool bAddChildren)
{
if( &MetaData != this )
{
Destroy();
Set_Name (MetaData.Get_Name ());
Set_Content (MetaData.Get_Content());
for(int i=0; i<MetaData.Get_Property_Count(); i++)
{
Add_Property(MetaData.Get_Property_Name(i), MetaData.Get_Property(i));
}
if( bAddChildren )
{
Add_Children(MetaData);
}
}
return( true );
}
示例10:
//---------------------------------------------------------
CCropToData::CCropToData(void)
{
Set_Name (_TL("Crop to Data"));
Set_Author (SG_T("V.Olaya (c) 2004"));
Set_Description (_TW(
"Crop grids to valid data cells"
));
Parameters.Add_Grid_List(
NULL , "INPUT" , _TL("Grids"),
_TL(""),
PARAMETER_INPUT
);
Parameters.Add_Grid_List(
NULL , "OUTPUT" , _TL("Cropped Grids"),
_TL(""),
PARAMETER_OUTPUT
);
}
示例11: Files
//---------------------------------------------------------
CWASP_MAP_Import::CWASP_MAP_Import(void)
{
Set_Name (_TL("Import WASP terrain map file"));
Set_Author (SG_T("(c) 2006 by O.Conrad"));
Set_Description (_TW(
"Reference:\n"
"<a href=\"http://www.risoe.dk/vea/projects/nimo/WAsPHelp/Wasp8.htm#FileFormatofMAP.htm\" target=\"_blank\">"
"http://www.risoe.dk/vea/projects/nimo/WAsPHelp/Wasp8.htm#FileFormatofMAP.htm</a>"
));
//-----------------------------------------------------
Parameters.Add_Shapes(
NULL , "SHAPES" , _TL("Contour Lines"),
_TL(""),
PARAMETER_OUTPUT , SHAPE_TYPE_Line
);
Parameters.Add_FilePath(
NULL , "FILE" , _TL("File Name"),
_TL(""),
CSG_String::Format(SG_T("%s|*.map|%s|*.*"),
_TL("WASP Map Files (*.map)"),
_TL("All Files")
), NULL, false
);
Parameters.Add_Choice(
NULL , "METHOD" , _TL("Input Specification"),
_TL(""),
CSG_String::Format(SG_T("%s|%s|%s|"),
_TL("elevation"),
_TL("roughness"),
_TL("elevation and roughness")
), 0
);
}
示例12: Olaya
//---------------------------------------------------------
CAddCoordinates::CAddCoordinates(void)
{
Set_Name (_TL("Add Coordinates to points"));
Set_Author (SG_T("Victor Olaya (c) 2004"));
Set_Description (_TW(
"(c) 2004 by Victor Olaya."
));
Parameters.Add_Shapes(
NULL, "INPUT" , _TL("Points"),
_TL(""),
PARAMETER_INPUT
);
Parameters.Add_Shapes(
NULL, "OUTPUT" , _TL("Output"),
_TL(""),
PARAMETER_OUTPUT_OPTIONAL
);
}
示例13:
//---------------------------------------------------------
CGSGrid_Variance::CGSGrid_Variance(void)
{
Set_Name (_TL("Representativeness (Grid)"));
Set_Author (SG_T("(c) 2003 by O.Conrad"));
Set_Description (_TW(
"Representativeness - calculation of the variance within a given search radius.\n"
"\n"
"Reference:\n"
"- Boehner, J., Koethe, R., Trachinow, C. (1997): "
"'Weiterentwicklung der automatischen Reliefanalyse auf der Basis von Digitalen Gelaendemodellen', "
"Goettinger Geographische Abhandlungen, Vol.100, p.3-21\n"
));
Parameters.Add_Grid(
NULL , "INPUT" , _TL("Grid"),
_TL(""),
PARAMETER_INPUT
);
Parameters.Add_Grid(
NULL , "RESULT" , _TL("Representativeness"),
_TL(""),
PARAMETER_OUTPUT
);
Parameters.Add_Value(
NULL , "RADIUS" , _TL("Radius (Cells)"),
_TL(""),
PARAMETER_TYPE_Int, 10
);
Parameters.Add_Value(
NULL , "EXPONENT", _TL("Exponent"),
_TL(""),
PARAMETER_TYPE_Double, 1
);
}
示例14:
//---------------------------------------------------------
CGrid_Profile::CGrid_Profile(void)
{
Set_Name (_TL("Profile"));
Set_Author (SG_T("(c) 2004 by O.Conrad"));
Set_Description (_TW(
"Create interactively profiles from a grid based DEM\n"
"Use left mouse button clicks into a map window to add profile points."
"A right mouse button click will finish the profile."
));
Set_Drag_Mode (MODULE_INTERACTIVE_DRAG_LINE);
Parameters.Add_Grid(
NULL, "DEM" , _TL("DEM"),
_TL(""),
PARAMETER_INPUT
);
Parameters.Add_Grid_List(
NULL, "VALUES" , _TL("Values"),
_TL("Additional values that shall be saved to the output table."),
PARAMETER_INPUT_OPTIONAL
);
Parameters.Add_Shapes(
NULL, "POINTS" , _TL("Profile Points"),
_TL(""),
PARAMETER_OUTPUT, SHAPE_TYPE_Point
);
Parameters.Add_Shapes(
NULL, "LINE" , _TL("Profile Line"),
_TL(""),
PARAMETER_OUTPUT, SHAPE_TYPE_Line
);
}
示例15:
//---------------------------------------------------------
CGridding_Spline_TPS_Local::CGridding_Spline_TPS_Local(void)
{
//-----------------------------------------------------
Set_Name (_TL("Thin Plate Spline"));
Set_Author ("O.Conrad (c) 2006");
Set_Description (_TW(
"Creates a 'Thin Plate Spline' function for each grid point "
"based on all of the scattered data points that are within a "
"given distance. The number of points can be limited to a "
"maximum number of closest points. "
"\n\n"
"References:\n"
"- Donato G., Belongie S. (2002):"
" 'Approximation Methods for Thin Plate Spline Mappings and Principal Warps',"
" In Heyden, A., Sparr, G., Nielsen, M., Johansen, P. (Eds.):"
" 'Computer Vision - ECCV 2002: 7th European Conference on Computer Vision, Copenhagen, Denmark, May 28-31, 2002',"
" Proceedings, Part III, Lecture Notes in Computer Science."
" Springer-Verlag Heidelberg; pp.21-31."
"\n"
"\n"
"- Elonen, J. (2005):"
" 'Thin Plate Spline editor - an example program in C++',"
" <a target=\"_blank\" href=\"http://elonen.iki.fi/code/tpsdemo/index.html\">http://elonen.iki.fi/code/tpsdemo/index.html</a>."
"\n"
));
//-----------------------------------------------------
Parameters.Add_Value(
NULL, "REGULARISATION" , _TL("Regularisation"),
_TL(""),
PARAMETER_TYPE_Double, 0.0001, 0.0, true
);
//-----------------------------------------------------
m_Search.Create(&Parameters, Parameters.Add_Node(NULL, "NODE_SEARCH", _TL("Search Options"), _TL("")), 16);
}