gmxPgPlotField

Author: Hiroshisa Mori / joshua@globalbase.org + [Transrate]Reiko Inoue Bendtsen c/o Suzaku Translations / (http://www.suzaku-translations.com/) +

PROTOTYPE

(1) <gmxPgPlotField/>

(2) <gmxPgPlotField> field-opt-list ... </gmxPgPlotField>

ARGUMENTS

field-opt-list [1] XLT_PTR [UNDEF REF (XLT_PTR)]: Pointer to the work area of matrix field data

... A data group determined by the [1+] merge-type attribute

ATTRIBUTES

id (1)(2) [mandatory] Integer: Matrix identifier

csv (1) [not required] (2) [arbitrary] Character string: A,B,C,.... Row in a CSVfile

label (1) [not required] (2) [arbitrary] Number: Matrix attribute number

dim (1) [不要] (2) [arbitrary] Number: Matrix dimension number

merge-type (1) [not required] (2) [mandatory] Character string: Attribute detailed type

EVALUATION TYPE

applicative

AGENT(S) BELONGS

gbmx

ENVIRONMENT BELONGS

Env0

EXPLANATION

This function match rows in a CSV file to a matrix's plot data attribute numbers or dimensions. The correspondence table is stored at an address given by field-opt-list . The prototype (1) generates a work area for the matrix field data and returns a pointer to it. The progotype (2) specifies the pointer to the work area field-opt-list and creates a correspondence table there.

The prototype (1) requires only the matrix identifier id as an attribute value. The prototype (2) requires the following combinations of attribute values. Attribute values indicated as "mandatory" are required, while attribute values indicated as "x" are not required.

Table Necessity of attribute values
id csv label dim merge-type
[1] (1) mandatory x x x x
[2] (2) Correspond to dimension numbers Mandatory Mandatory x Mandatory Mandatory
[3] (2) To attribute numbersattribute, constant value Mandatory x Mandatory x Mandatory
[4] (2) To attribute numbers, CSV Mandatory Mandatory Mandatory x Mandatory


Some usage examples are shown below.

[2]
<gmxPgPlotField id="^mtx" csv="A" merge-type="^mxPgTYPE_INT" dim="0">
  ^Fields ^mxPgFDIT_DD ^reso (* 180 reso) 0</gmxPgPlotField>
 



[4]
<gmxPgPlotField id="^mtx" csv="C" merge-type="^mxPgTYPE_STRING" label="5">
  ^Fields utf-8 ([quote type="direct"] '([field name="LABEL"] ($ ___convert)))</gmxPgPlotField>
[3]
<gmxPgPlotField id="^mtx" merge-type="^mxPgTYPE_RGBA" label="0">
  ^Fields 0 0xff000000</gmxPgPlotField>
[4]
<gmxPgPlotField id="^mtx" csv="D" merge-type="^mxPgTYPE_STRING" label="1">
  ^Fields utf-8 () test-http </gmxPgPlotField>
 

As already explained, the instruction [1] generates a work area. The method [2] acquires coordinate values from a CSV file. The method [3] sets a constant value for all the plots. The function [4] processes CSV values and assigns them to attribute numbers of plots. Lastly, the element data of gmxPgPlotField is given differently depending on the data type given by the merge-type XML attribute. Integer type [data type in CSV] The following values can be specified for this type.

[UP] Go To Page Top

RETURN VALUE

If mode ="meta," a gmxStatus list is returned.

If mode is omitted, XLT_RAW [UNDEF REF (XLT_RAW)]-type node information is returned. The XLT_RAW information includes the followings.
  1. nlist_type 1byte
    Format type of child node list
    • 0:Bit field type
    • 1:dim_code enumeration type
  2. Child node list: In case of bit field type
    1. nlist_dim_bit_field_len
      Bit field length: compressed_code 64format integer
    2. nlist_dim_bit_field
      Bit field with a length of nlist_dim_bit_field_len
  3. Child node list: In case of dim_code enumeration type
    1. nlist_dim_addr_len
      Number of dim_codes counted: compressed_code64 format integer
    2. dim_codes
      dim_code for the number of nlist_dim_addr_len. Each dim_code is a row of compressed_code64 format integers
  4. channel_data
    Channel data Each channel data is formatted in the following order, repeated for the number of required channels.
    1. id
      Channel ID: compressed_code 64format
    2. len
      The length of the channel data itself, compressed code 64format
    3. data
      The data itself. The format conform to the format of each data type.

ERRORS

REFERENCE

BUGS



[UP] Go To Page Top
  GLOBALBASE has particated in the open source software support program SORCE FORGE SourceForge.jp SourceForge.net Logo