Informační tok Funkční structura Datová struktura ER model Modulová struktura Typová struktura Relační model Dokumentace


[Celkový datový model] [Funkce] [Externí rohraní] [Stavové diagramy] [Datové elementy] [Entity] [Relace]
[Databáze] [Události] [Materiály] [Generovací funkce] [Vyhodnocovací funkce] [Konfigurace] [Uživatelé] [Projekt] [Home]



Vyhodnocovací funkce
H_CaseUdmCoorToImageCoor
(Web Publishing)


Vytvořeno: 02-11-2002 16:37:17
Poslední změna: 01-09-2003 09:41:16

Modul

Module: Web Publishing

Zdrojový kód:

PROCEDURE H_CaseUdmCoorToImageCoor(origx%, origy%, BYREF resx%, BYREF resy%)
BEGIN

    
    
  ///////////////////////////////////////////////////////////////////////////////////
  // This method is called by the following "create client side image map" functions:
  // - EnterprisedatamodelMap()
  // All image map generating functions for satndard nets should call
  // the H_CaseNonBoxCoorToImageCoor helper function

  /////////////////////////////////////////////////////////////////////////////
  //how it works... resx% and resy% contain the pixels that were cut off as the
  //image was created by case/4/0's WritePicture function

  //save passed in cut-off values
  CutOffX% = resx%;
  CutOffY% = resy%;

  //scale & precision (since we do integer arithmetics)
  XScale% = 118446;
  YScale% = 173333; //151612;
  Precision% = 100000;
  
  //new algorithm.. still easy
  // 1. perform scale operation
  // 2. cut off border

  //1. Step - scale operation
  resx% = origx% * XScale% / Precision%;
  resy% = origy% * YScale% / Precision%;

  //2. Step - cut off border
  resx% = resx% - CutOffX%;
  resy% = resy% - CutOffY%;
END


Generováno: 16.10.2003 7:41 Systém: C:\Documents and Settings\hajsman\Dokumenty\Vyuka\Irs2\Projekt case40\Projekt03.csf Generováno systémem case/4/0
Vygeneroval: Administrator Soubor: C:\Documents and Settings\hajsman\Dokumenty\Vyuka\Irs2\Projekt case40\html\508752465.htm (C) microTOOL GmbH 2002