-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathAnalysisToolsPlugIn.h
More file actions
49 lines (35 loc) · 1.4 KB
/
AnalysisToolsPlugIn.h
File metadata and controls
49 lines (35 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright (c) 1993-2018 Robert McNeel & Associates. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// AnalysisToolsPlugIn.h
#pragma once
#include "AnalysisObject.h"
// CAnalysisToolsPlugIn
// See AnalysisToolsPlugIn.cpp for the implementation of this class
//
class CAnalysisToolsPlugIn : public CRhinoFileImportPlugIn
{
public:
CAnalysisToolsPlugIn();
~CAnalysisToolsPlugIn() = default;
// Required overrides
const wchar_t* PlugInName() const override;
const wchar_t* PlugInVersion() const override;
GUID PlugInID() const override;
// Additional overrides
BOOL OnLoadPlugIn() override;
void OnUnloadPlugIn() override;
LPUNKNOWN GetPlugInObjectInterface(const ON_UUID& iid);
// File import overrides
void AddFileType(ON_ClassArray<CRhinoFileType>& extensions, const CRhinoFileReadOptions& options) override;
BOOL ReadFile(const wchar_t* filename, int index, CRhinoDoc& doc, const CRhinoFileReadOptions& options) override;
private:
ON_Mesh* ReadFalseColorMeshFile(FILE* fp, ON_Mesh* mesh = nullptr);
ON_Mesh* ReadStructuredTechPlotFile(FILE* fp, ON_Mesh* mesh = nullptr);
private:
ON_wString m_plugin_version;
int m_false_color_index;
int m_tecplot_index;
CAnalysisObject m_object;
};
// Return a reference to the one and only CAnalysisToolsPlugIn object
CAnalysisToolsPlugIn& AnalysisToolsPlugIn();