mi32/rvcstyle.h File Reference

Definitions for Style objects. More...

#include <rvc/objectname.h>
#include <mi32/elemstyl.h>
Include dependency graph for rvcstyle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BITMAPPATTHDR
 Bitmap pattern header. More...
struct  HATCHPATTELEM
 Hatch pattern element structure. More...
struct  HATCHPATTHDR
 Hatch pattern header. More...
struct  LINEPATTELEM
struct  LINEPATTHDR
 Line pattern header. More...
struct  RVCLINESTYLE
 Structure for line drawing style. More...
struct  RVCPATTHDR
 Information common to all patterns / symbols. More...
struct  RVCPOINTSTYLE
 Structure for point drawing style. More...
struct  RVCPOLYGONSTYLE
 Structure for polygon drawing style. More...
struct  RVCTEXTSTYLE
 Structure for text drawing style. More...
union  SYMBOLDATA
struct  SYMBOLELEM
 Symbol element structure. More...
struct  SYMBOLHDR
 Symbol header. More...

Defines

#define HATCHPATTELEM_Last   2
#define HATCHPATTELEM_LinePattern   1
#define HATCHPATTELEM_Simple   0
#define HATCHPATTELEM_SolidFill   2
#define LINEPATTELEM_Circle   2
#define LINEPATTELEM_CrossLine   1
#define LINEPATTELEM_Last   4
#define LINEPATTELEM_Line   0
#define LINEPATTELEM_Polygon   4
#define LINEPATTELEM_PolyLine   3
#define LINEPATTFLAG_CapRound   0x0008
#define LINEPATTFLAG_Filled   0x0001
#define LINEPATTFLAG_JoinBevel   0x0004
#define LINEPATTFLAG_JoinMiter   0x0002
#define NUMPATTTYPES   PATTERNTYPE_COUNT
#define NUMSTYLETYPES   STYLETYPE_COUNT
#define PTSYM_Arc   2
#define PTSYM_ArcChord   4
#define PTSYM_ArcWedge   3
#define PTSYM_Circle   1
#define PTSYM_EArc   6
#define PTSYM_EArcChord   8
#define PTSYM_EArcWedge   7
#define PTSYM_Ellipse   5
#define PTSYM_Last   16
#define PTSYM_Line   9
#define PTSYM_NULL   0
#define PTSYM_Point   11
#define PTSYM_Polygon   10
#define PTSYM_Polygons   15
#define PTSYM_Rectangle   14
#define PTSYM_Segment   13
#define PTSYM_Splines   16
#define PTSYM_Text   12
#define STYLETYPE_Poly   STYLETYPE_Polygon
#define SYMBOLFLAG_Filled   0x0001
#define SYMBOLHDRFLAG_OldSymbol   (0x8000)

Enumerations

enum  PATTERNTYPE {
  PATTERNTYPE_Symbol = 0, PATTERNTYPE_Line = 1, PATTERNTYPE_Bitmap = 2, PATTERNTYPE_Hatch = 3,
  PATTERNTYPE_COUNT = 4
}
enum  STYLETYPE {
  STYLETYPE_Point = 0, STYLETYPE_Line = 1, STYLETYPE_Polygon = 2, STYLETYPE_Text = 3,
  STYLETYPE_COUNT = 4, STYLETYPE_Empty = 0xFFFF
}

Functions

ERRVALUE MfImportPointSymbolFromCGM (RVC::STYLE &StyleObj, const RVC::OBJECTNAME &SymbolName, const FILEPATH &FilePathCGM)
ERRVALUE MfImportPointSymbolFromTTF (RVC::STYLE &StyleObj, const RVC::OBJECTNAME &SymbolName, const MIUNICODE *FontName, int GlyphIndex)
ERRVALUE MfImportPointSymbolsFromCAD (RVC::STYLE &StyleObj, const RVC::OBJITEM &ObjItemCAD)

Variables

DEPRECATED typedef RVCPOLYGONSTYLE RVCPOLYSTYLE

Detailed Description

Definitions for Style objects.


Define Documentation

#define HATCHPATTELEM_Last   2

Last defined type.

#define HATCHPATTELEM_LinePattern   1

Line pattern.

#define HATCHPATTELEM_Simple   0

Simple solid lines.

#define HATCHPATTELEM_SolidFill   2

Fill with solid color.

#define LINEPATTELEM_Circle   2

Circle - xsize = radius.

#define LINEPATTELEM_CrossLine   1

Line perpendicular to drawing direction.

#define LINEPATTELEM_Last   4

Last defined type.

#define LINEPATTELEM_Line   0

Line parallel to drawing direction, xsize=0 indicates continuous.

#define LINEPATTELEM_Polygon   4

Polygon.

#define LINEPATTELEM_PolyLine   3

PolyLine.

#define LINEPATTFLAG_CapRound   0x0008

Use rounded ends on line segments.

#define LINEPATTFLAG_Filled   0x0001

Fill (circle and polygon elements).

#define LINEPATTFLAG_JoinBevel   0x0004

Join "bent" segment beveled.

#define LINEPATTFLAG_JoinMiter   0x0002

Join "bent" segment mitered (extended).

#define NUMPATTTYPES   PATTERNTYPE_COUNT
#define NUMSTYLETYPES   STYLETYPE_COUNT
#define PTSYM_Arc   2
#define PTSYM_ArcChord   4
#define PTSYM_ArcWedge   3
#define PTSYM_Circle   1
#define PTSYM_EArc   6
#define PTSYM_EArcChord   8
#define PTSYM_EArcWedge   7
#define PTSYM_Ellipse   5
#define PTSYM_Last   16

Last element type defined.

#define PTSYM_Line   9
#define PTSYM_NULL   0

Empty element, maybe for deletes?

#define PTSYM_Point   11
#define PTSYM_Polygon   10
#define PTSYM_Polygons   15

Multiple polygons with islands.

#define PTSYM_Rectangle   14
#define PTSYM_Segment   13
#define PTSYM_Splines   16

Splines of the type used in TrueType.

#define PTSYM_Text   12
#define STYLETYPE_Poly   STYLETYPE_Polygon
#define SYMBOLFLAG_Filled   0x0001

Fill polygonal elements.

#define SYMBOLHDRFLAG_OldSymbol   (0x8000)

Enumeration Type Documentation

Enumeration for pattern types.

Enumerator:
PATTERNTYPE_Symbol 
PATTERNTYPE_Line 
PATTERNTYPE_Bitmap 
PATTERNTYPE_Hatch 
PATTERNTYPE_COUNT 
enum STYLETYPE

Enumeration for style types.

Enumerator:
STYLETYPE_Point 
STYLETYPE_Line 
STYLETYPE_Polygon 
STYLETYPE_Text 
STYLETYPE_COUNT 
STYLETYPE_Empty 

Function Documentation

ERRVALUE MfImportPointSymbolFromCGM ( RVC::STYLE StyleObj,
const RVC::OBJECTNAME SymbolName,
const FILEPATH FilePathCGM 
)

Create a point symbol from a CGM (Computer Graphics Metafile) file.

Parameters:
StyleObj Style object to import to
SymbolName Name to give the new symbol
FilePathCGM Path to CGM file
ERRVALUE MfImportPointSymbolFromTTF ( RVC::STYLE StyleObj,
const RVC::OBJECTNAME SymbolName,
const MIUNICODE FontName,
int  GlyphIndex 
)

Create a point symbol from a TrueType glyph.

INC_MI32_RVCSTYLE_H

Parameters:
StyleObj Style object to import to
SymbolName Name to give the new symbol
FontName Name for TrueType font to read from
GlyphIndex Glyph Index (not ASCII or Unicode value)
ERRVALUE MfImportPointSymbolsFromCAD ( RVC::STYLE StyleObj,
const RVC::OBJITEM ObjItemCAD 
)

Import point symbols from RVC CAD blocks.

If the CAD object only has one block, it is converted to a symbol. If the CAD object has > 1 block, the first block is ignored and all the other blocks are imported using the block names for new symbol names.

Parameters:
StyleObj Style object to import to
ObjItemCAD CAD object to import from

Variable Documentation

DEPRECATED typedef RVCPOLYGONSTYLE RVCPOLYSTYLE

Generated on Sun Oct 7 21:28:01 2012 for TNTsdk 2012 by  doxygen 1.6.1