C# Class KFreonLib.Textures.TreeTexInfo

Formerly texStruct. Provides an object to store tree texture information.
Inheritance: abstractTexInfo
Show file Open project: ME3Explorer/ME3Explorer Class Usage Examples

Public Properties

Property Type Description
FullPackage string
ListViewIndex int
ParentNode KFreonLib.GUI.myTreeNode
Textures List
ThumbnailPath string
TriedThumbUpdate bool
tfcOffset int

Public Methods

Method Description
GetImage ( string pathBIOGame, int size = -1 ) : Bitmap

Returns current texture as a Bitmap. Option to specify size.

TreeTexInfo ( ) : KFreonLib.Debugging

Constructor for tree texture object for use in initial lists to be populated later.

TreeTexInfo ( IPCCObject temppcc, int ExpID, int WhichGame, string pathBIOGame, string ExecPath, bool &Success ) : KFreonLib.Debugging

Constructor for tree texture object.

TreeTexInfo ( ITexture2D tex2D, int ExpID, uint hash, int WhichGame, IPCCObject pcc, int tfcoffset, string thumbpath, string pathBIOGame ) : KFreonLib.Debugging

Constructor for tree texture objects.

TreeTexInfo ( List GivenFiles, List GivenExpIDs, uint GivenHash, int GivenMips, List GivenTextures, int WhichGame, string pathBIOGame ) : KFreonLib.Debugging

Constructor for tree texture object.

Update ( List GivenFiles, List GivenExpIDs, uint GivenHash, int GivenMips, List GivenTextures, string pathBIOGame ) : void
Update ( TreeTexInfo tex, string pathBIOGame ) : void

Private Methods

Method Description
InfoInitialise ( ITexture2D tex2D, int ExpID, uint hash, int WhichGame, IPCCObject pcc, int tfcoffset, string thumbpath, string pathBIOGame ) : void

Common initialiser used by both TexInfo derivations.

InfoInitialise ( List GivenFiles, List GivenExpIDs, uint GivenHash, int GivenMips, List GivenTextures, int WhichGame, string pathBIOGame ) : void

Common initialiser used by both TexInfo derivations.

ReorderCheck ( string pathBIOGame ) : void

Method Details

GetImage() public method

Returns current texture as a Bitmap. Option to specify size.
public GetImage ( string pathBIOGame, int size = -1 ) : Bitmap
pathBIOGame string Path to BIOGame.
size int OPTIONAL: Maximum size on any dimension. Defaults to max.
return System.Drawing.Bitmap

TreeTexInfo() public method

Constructor for tree texture object for use in initial lists to be populated later.
public TreeTexInfo ( ) : KFreonLib.Debugging
return KFreonLib.Debugging

TreeTexInfo() public method

Constructor for tree texture object.
public TreeTexInfo ( IPCCObject temppcc, int ExpID, int WhichGame, string pathBIOGame, string ExecPath, bool &Success ) : KFreonLib.Debugging
temppcc IPCCObject PCC to get info from.
ExpID int ExpID of texture.
WhichGame int Game target.
pathBIOGame string BIOGame path to game targeted.
ExecPath string Path to ME3Explorer \exec\ folder.
Success bool OUT: True if sucessfully created.
return KFreonLib.Debugging

TreeTexInfo() public method

Constructor for tree texture objects.
public TreeTexInfo ( ITexture2D tex2D, int ExpID, uint hash, int WhichGame, IPCCObject pcc, int tfcoffset, string thumbpath, string pathBIOGame ) : KFreonLib.Debugging
tex2D ITexture2D Texture2D to get data from.
ExpID int ExpID of texture.
hash uint Hash of texture.
WhichGame int Game target.
pcc IPCCObject PCC to get info from.
tfcoffset int Offset of texture data in TFC.
thumbpath string Path to thumbnail.
pathBIOGame string
return KFreonLib.Debugging

TreeTexInfo() public method

Constructor for tree texture object.
public TreeTexInfo ( List GivenFiles, List GivenExpIDs, uint GivenHash, int GivenMips, List GivenTextures, int WhichGame, string pathBIOGame ) : KFreonLib.Debugging
GivenFiles List List of PCC's containing texture.
GivenExpIDs List List of ExpID's of texture within PCC's.
GivenHash uint Hash of texture.
GivenMips int Number of mips in texture.
GivenTextures List List of easy access Texture2D's.
WhichGame int Game target.
pathBIOGame string
return KFreonLib.Debugging

Update() public method

public Update ( List GivenFiles, List GivenExpIDs, uint GivenHash, int GivenMips, List GivenTextures, string pathBIOGame ) : void
GivenFiles List
GivenExpIDs List
GivenHash uint
GivenMips int
GivenTextures List
pathBIOGame string
return void

Update() public method

public Update ( TreeTexInfo tex, string pathBIOGame ) : void
tex TreeTexInfo
pathBIOGame string
return void

Property Details

FullPackage public property

public string FullPackage
return string

ListViewIndex public property

public int ListViewIndex
return int

ParentNode public property

public myTreeNode,KFreonLib.GUI ParentNode
return KFreonLib.GUI.myTreeNode

Textures public property

public List Textures
return List

ThumbnailPath public property

public string ThumbnailPath
return string

TriedThumbUpdate public property

public bool TriedThumbUpdate
return bool

tfcOffset public property

public int tfcOffset
return int