资源简介
网络资源 是美国Golden Software 公司编制的一款以画三维图(等高线,image map, 3d surface)的软件。该软件具有的强大插值功能和绘制图件能力,使它成为用来处理XYZ数据的首选软件,是地质工作者必备的专业成图软件。
代码片段和文件信息
//-----------------------------------------------------------------------------
//
// Client.cpp Copyright (C) Golden Software Inc. 1999-2000
//
// You have a royalty-free right to use modify reproduce and distribute
// the Sample Application Files in any way you find useful provided that
// you agree that Golden Software has no warranty obligations or liability
// for any Sample Application Files.
//
// This example demonstrates how to automate Surfer from C++. A new instance
// of Surfer is started and a shaded relief map is created. The shaded relief
// map colors are then “animated“ from black to red.
//
// This example uses the Microsoft-specific extension “#import“ to create
// header files from the type library information contained within Surfer.exe.
// The generated header files contain several smart-pointer classes that
// greatly simplify this entire process. Make sure the #import directive
// below points to the correct location of Surfer.exe.
//
// This example was compiled with Microsoft Visual C++ 6.0 using the
// following command line:
//
// cl -GX Client.cpp
//
//-----------------------------------------------------------------------------
#include
#include
#import “..\surfer.exe“ no_namespace
using namespace std;
void AnimateColorMap(IColorMapPtr& pCM); // Forward declaration
//-----------------------------------------------------------------------------
void main()
{
// Initialize the system DLL‘s
HRESULT hr = CoInitialize(NULL);
if(FAILED(hr))
{
cout << “CoInitialize Failed: “ << hr << “\n\n“;
exit(1);
}
try
{
// Create an instance of the Application object
IApplicationPtr pApp(__uuidof(Application));
// Make the Application object visible
pApp->Visible = VARIANT_TRUE;
// Get the Documents collection
IDocumentsPtr pDocs = pApp->Documents;
// Add a new document to the Documents collection.
IPlotDocumentPtr pDoc = pDocs->Add(srfDocPlot);
// Get the Shapes collection from the document
IShapesPtr pShapes = pDoc->Shapes;
// Create a shaded relief map from the helens2.grd file. This is
// in a subdirectory off the application startup directory.
IMapframePtr pMF = pShapes->AddReliefMap(pApp->Path + “\\Samples\\Helens2.grd“);
// Get the shaded relief overlay from the map frame
IReliefMapPtr pRM = pMF->Overlays->Item(1L);
// Get the ColorMap used by the relief map
IColorMapPtr pCM = pRM->ColorMap;
// Animate the colors of the shaded relief map from the default black
// to red.
AnimateColorMap(pCM);
}
catch(_com_error e)
{
MessageBeep(0);
// Display a generic COM error message
cout << e.ErrorMessage() << “\n“;
// Display any application supplied information
if(e.Description().length())
cout << (const
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2597 2003-02-19 17:30 Surfer_ha\Surfer_ha\0x0409.ini
文件 123 2015-05-18 16:18 Surfer_ha\Surfer_ha\9553下载站.url
文件 266240 2003-02-18 11:49 Surfer_ha\Surfer_ha\AutoRun.exe
文件 53 2002-05-20 22:50 Surfer_ha\Surfer_ha\AutoRun.inf
文件 49353 2000-10-19 00:00 Surfer_ha\Surfer_ha\china.exe
文件 3976 2002-06-04 14:42 Surfer_ha\Surfer_ha\fixdown.htm
文件 16116 2002-05-20 22:50 Surfer_ha\Surfer_ha\Fonts\gsdefsym.ttf
文件 5376 2002-05-20 22:50 Surfer_ha\Surfer_ha\Fonts\GSDidger1.ttf
文件 18340 2002-05-20 22:50 Surfer_ha\Surfer_ha\Fonts\GSGeol1.ttf
文件 6936 2002-05-20 22:50 Surfer_ha\Surfer_ha\Fonts\GSMap1.ttf
文件 8408 2002-05-20 22:50 Surfer_ha\Surfer_ha\Fonts\GSNArrow.ttf
文件 34208 2002-05-20 22:50 Surfer_ha\Surfer_ha\Fonts\GSOandG1.ttf
文件 7524 2002-05-20 22:50 Surfer_ha\Surfer_ha\Fonts\GSWBarb1.ttf
文件 25796 2002-05-20 22:50 Surfer_ha\Surfer_ha\Fonts\GSWeath1.ttf
文件 1707856 2003-02-18 11:48 Surfer_ha\Surfer_ha\instmsia.exe
文件 1821008 2003-02-18 11:48 Surfer_ha\Surfer_ha\instmsiw.exe
文件 36117 2002-12-12 23:34 Surfer_ha\Surfer_ha\keygen\keygen.exe
文件 5190 2002-12-13 00:25 Surfer_ha\Surfer_ha\keygen\ror.nfo
文件 271872 2002-05-20 22:50 Surfer_ha\Surfer_ha\program files\Golden Software\Surfer8\ACCUISR5.DLL
文件 6603 2003-02-27 15:18 Surfer_ha\Surfer_ha\program files\Golden Software\Surfer8\attrib.ini
文件 36902 2003-02-18 11:49 Surfer_ha\Surfer_ha\program files\Golden Software\Surfer8\expr.dll
文件 32808 2003-02-18 11:49 Surfer_ha\Surfer_ha\program files\Golden Software\Surfer8\gfesym.dll
文件 32808 2003-02-18 11:49 Surfer_ha\Surfer_ha\program files\Golden Software\Surfer8\gfettp.dll
文件 725050 2003-03-03 11:13 Surfer_ha\Surfer_ha\program files\Golden Software\Surfer8\GridLib.dll
文件 24618 2003-02-18 11:49 Surfer_ha\Surfer_ha\program files\Golden Software\Surfer8\gscach32.dll
文件 434230 2003-02-18 11:49 Surfer_ha\Surfer_ha\program files\Golden Software\Surfer8\GsComLib3.dll
文件 32808 2002-05-20 22:50 Surfer_ha\Surfer_ha\program files\Golden Software\Surfer8\gscomp.dll
文件 122920 2002-05-20 22:50 Surfer_ha\Surfer_ha\program files\Golden Software\Surfer8\gsgeom.dll
文件 36904 2003-02-18 11:49 Surfer_ha\Surfer_ha\program files\Golden Software\Surfer8\gsibit.dll
文件 36906 2003-02-18 11:49 Surfer_ha\Surfer_ha\program files\Golden Software\Surfer8\gsibln32.dll
............此处省略231个文件信息
评论
共有 条评论