Class ProfileFactoryBase<TProfileType, TProfile>
Base class for profile factories.
Inheritance
System.Object
ProfileFactoryBase<TProfileType, TProfile>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Elements.Geometry.Profiles
Assembly: Hypar.Elements.dll
Syntax
public abstract class ProfileFactoryBase<TProfileType, TProfile>
Type Parameters
| Name | Description |
|---|---|
| TProfileType | |
| TProfile |
Constructors
ProfileFactoryBase(String)
Construct a profile factory.
Declaration
public ProfileFactoryBase(string data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | data | A comma separated data value representing the properties of the profiles. |
Fields
_profileData
A collection of profile data.
Declaration
protected List<string[]> _profileData
Field Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.String[]> |
Methods
AllProfiles()
Get all profiles.
Declaration
public IEnumerable<TProfile> AllProfiles()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<TProfile> |
CreateProfile(Int32)
Create a profile.
Declaration
protected virtual TProfile CreateProfile(int typeIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | typeIndex |
Returns
| Type | Description |
|---|---|
| TProfile |
GetProfileByName(String)
Get a profile by name.
Declaration
public abstract TProfile GetProfileByName(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
Returns
| Type | Description |
|---|---|
| TProfile |
GetProfileByType(TProfileType)
Get a profile by type.
Declaration
public abstract TProfile GetProfileByType(TProfileType type)
Parameters
| Type | Name | Description |
|---|---|---|
| TProfileType | type |
Returns
| Type | Description |
|---|---|
| TProfile |