-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPFunction2DSymbolChoice.cs
55 lines (50 loc) · 1.83 KB
/
PFunction2DSymbolChoice.cs
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
47
48
49
50
51
52
53
54
55
/* Copyright (C) 2012 Fairmat SRL ([email protected], http://www.fairmat.com/)
* Author(s): Stefano Angeleri ([email protected])
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using DVPLI;
using Mono.Addins;
namespace PFunction2D
{
/// <summary>
/// The symbol choice to be shown in the "Functions" list of choices.
/// </summary>
[Extension("/Fairmat/SymbolChoice")]
public class PFunction2DSymbolChoice : IEditableChoice
{
#region IEditableChoice implementation
/// <summary>
/// Gets the description to show in the "Functions" list of choices.
/// </summary>
public string Description
{
get
{
return "Functions/2D Function defined by value interpolation";
}
}
/// <summary>
/// Returns the PFunction2D representing a 2D function defined by value interpolation.
/// </summary>
/// <returns>
/// The PFunction2D representing the 2D function defined by value interpolation.
/// </returns>
public IEditable CreateInstance()
{
return new PFunction2D(null);
}
#endregion IEditableChoice implementation
}
}