📄 poi.tff
字号:
# TextFileFormat (leave this tag as magic token!)
# BVQX file format for *.POI files (Patch Of Interest)
# POI FileVersions supported: 2
#
# POI files contain coordinates of a group voxels of interest.
#
# Version: v0.7a
# Build: 7072014
# Date: Jul-20 2007, 2:48 PM CEST
# Author: Jochen Weber, Brain Innovation, B.V., Maastricht, NL
# URL/Info: http://wiki.brainvoyager.com/BVQXtools
# FILE FORMAT
Description:Patch of interest files
Extensions:poi
FieldDelimiters: {[32]}
LineDelimiters: {[13, 10], [10]}
ParagraphArrays:0
SkipEmptyLines:1
Magic:|
name |range |type |magic
POI_NrPOIs |1, 256 |regexpi |nrofpois\:\s*\d+\s*nameofpoi\:
EndMagic
# FIELDS
ListOfFields:!
type !cond !field !datatype!format !dim !default !varname
WRTLN!!!!!!! # empty line
FIELD! !FileVersion !double !%d !1 !2 !FileVersion
WRTLN!!!!!!! # empty line
FIELD! !FromMeshFile !string !"%s" !1 ! !FromMeshFile
WRTLN!!!!!!! # empty line
FLIST! !NrOfMeshVertices !double !%d !1 !40962 !NrOfMeshVertices
WRTLN!!!!!!! # empty line
WRTLN!!!!!!! # empty line
EXPRE!$TFFWRITE !!!!!!@NrOfPOIs = numel(@POI);
FIELD! !NrOfPOIs !double !%d !1 !1 !NrOfPOIs
# loop over POIs
EXPRE!$TFFREAD !!!!!!@POI = cell2struct(cell(0, 0, 6), {'Name', 'InfoTextFile', 'Color', 'LabelVertex', 'NrOfVertices', 'Vertices'}, 3); if @NrOfPOIs > 0, @POI(@NrOfPOIs).Name = ''; end
BLOOP! ! ! ! !@NrOfPOIs ! !POINo
WRTLN!!!!!!! # empty line
FIELD! !NameOfPOI !string !"%s" !1 !1 !POI($POINo).Name
FLIST! !InfoTextFile !string !"%s" !1 !1 !POI($POINo).InfoTextFile
FLIST! !ColorOfPOI !double !%d !3 ! !POI($POINo).Color
FLIST! !LabelVertex !double !%d !1 ! !POI($POINo).LabelVertex
EXPRE!$TFFWRITE !!!!!!@POI($POINo).Vertices = @POI($POINo).Vertices(:) - 1; @POI($POINo).NrOfVertices = numel(@POI($POINo).Vertices);
FIELD! !NrOfVertices !double !%d !1 ! !POI($POINo).NrOfVertices
ARRAY! !Vertices !double !%d !@POI($POINo).NrOfVertices, 1 !!POI($POINo).Vertices
EXPRE! !!!!!!@POI($POINo).Vertices = @POI($POINo).Vertices + 1;
WRTLN!!!!!!! # empty line
ELOOP! ! ! ! ! ! !POINo
# MTCs
WRTLN!!!!!!! # empty line
EXPRE!$TFFWRITE !!!!!!@NrOfMTCs = numel(@MTCList);
FIELD! !NrOfPOIMTCs !double !%d !1 !1 !NrOfMTCs
ARRAY! !MTCList !string !"%s" !@NrOfMTCs, 1 ! !MTCList
EndListOfFields
NewFileCode:!
@FileVersion = 2;
@FromMeshFile = '<none>';
@NrOfMeshVertices = 40962;
@NrOfPOIs = 1;
@POI.Name = 'empty_POI';
@POI.InfoTextFile = '<none>';
@POI.Color = [128, 128, 128];
@POI.LabelVertex = 0;
@POI.NrOfVertices = 0;
@POI.Vertices = zeros(0, 3);
@NrOfMTCs = 0;
@MTCList = cell(0, 1);
EndNewFileCode
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -