Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3603774B2 - CAD data display device, method and computer-readable recording medium - Google Patents
[go: Go Back, main page]

JP3603774B2 - CAD data display device, method and computer-readable recording medium - Google Patents

CAD data display device, method and computer-readable recording medium Download PDF

Info

Publication number
JP3603774B2
JP3603774B2 JP2000324366A JP2000324366A JP3603774B2 JP 3603774 B2 JP3603774 B2 JP 3603774B2 JP 2000324366 A JP2000324366 A JP 2000324366A JP 2000324366 A JP2000324366 A JP 2000324366A JP 3603774 B2 JP3603774 B2 JP 3603774B2
Authority
JP
Japan
Prior art keywords
image
cad data
reduced
complexity
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2000324366A
Other languages
Japanese (ja)
Other versions
JP2002132235A (en
Inventor
裕一 中谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2000324366A priority Critical patent/JP3603774B2/en
Publication of JP2002132235A publication Critical patent/JP2002132235A/en
Application granted granted Critical
Publication of JP3603774B2 publication Critical patent/JP3603774B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)
  • Digital Computer Display Output (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、CAD データを展開して描画し、ディスプレイや印刷等により表示するCAD データ表示装置、方法及びCAD データ表示用のプログラムを記録したコンピュータ読み取り可能な記録媒体に関するものである。
【0002】
【従来の技術】
CAD データは画像を記憶しているのではなく、画像を再現するために必要なデータを記憶している。従って、CAD データ表示システムにおいて、画像を表示するためには、そのデータを画像に展開する必要がある。このとき、指定された展開範囲が広いと、多くのデータを展開する必要があるため、描画時間が長くなるという問題がある。そこで、例えば特開平11−110169 号公報のように、データを予め画像に展開して記憶しておき、この画像を適宜拡大縮小して表示するという方式が従来から採られてきた。
【0003】
また、展開後の画像が大きい場合には、画像を適当に縮小して記憶し、展開範囲が広い場合には、この縮小画像を適宜拡大縮小して表示することも、従来から行われてきた。この方式を用いると、CAD データを画像に展開する必要がないため、より高速に画像を表示することが期待できる。
【0004】
【発明が解決しようとする課題】
しかし、上記の従来技術には、次のような問題点があった。
即ち、ある特定の部分領域について比較すると、却って描画速度が低下する場合があることである。
その理由を述べる。例えばある1つの部分領域中に、互いに重なりのない同じ形状の小さな四角形がn個だけある場合を考える。このとき、CAD データから部分領域に対応する画像を展開すると、小さな四角形をn個描画するだけで済む。一方、縮小画像から画像を抽出するためには部分領域全体を走査する必要がある。ここで、後者の処理ではnの値に関わらず描画時間が一定であることに注意する。
【0005】
ところで、n=0の場合は展開すべきCAD データがないから、明らかにCAD データから画像を展開した方が高速である。n=1、2 、…と増やしていった場合、どこで双方の描画時間が逆転するかは、システム全体の特性と部分領域の大きさと拡大倍率とによって変化する。
このように、従来技術では常に一つの方法による処理しか行われないため、却って速度が低下することがあるという問題があった。
【0006】
本発明は、以上の問題点を解決してCAD データを高速に描画できるCAD データ表示装置、方法及びCAD データ表示用プログラムを記録したコンピュータ読み取り可能な記録媒体を提供することを目的としている。
【0007】
【課題を解決するための手段】
上記の目的を達成するために、本発明によるCAD データ表示装置は、CAD データを画像に展開するために必要な処理時間を画像複雑度として、CAD データの部分領域毎に記憶する画像複雑度記憶手段と、CAD データを展開した後に適当な拡大倍率で縮小した画像を記憶する縮小画像記憶手段と、前記記憶された画像複雑度としきい値とを比較し、比較結果に応じて前記CAD データから画像を展開して描画するか、前記記憶された縮小画像から必要な画像を抽出して描画するかを、前記部分領域毎に選択して描画する画像描画手段とを設けたものである。
【0008】
また、本発明によるCAD データ表示方法は、CAD データを画像に展開するために必要な処理時間を画像複雑度として、CAD データの部分領域毎に記憶すると共に、CAD データを展開した後に適当な拡大倍率で縮小した画像を記憶し、前記記憶された画像複雑度としきい値とを比較し、比較結果に応じて前記CAD データから画像を展開して描画するか、前記記憶された縮小画像から必要な画像を抽出して描画するかを、前記部分領域毎に選択して描画するようにしたものである。
【0009】
また、本発明によるCAD データ表示用のプログラムを記録したコンピュータ読み取り可能な記録媒体は、CAD データを画像に展開するために必要な処理時間を画像複雑度として、CAD データの部分領域毎に記憶された前記画像複雑度としきい値とを比較する比較処理と、比較結果に応じて前記CAD データから画像を展開して描画処理するか、あるいはCAD データを展開した後に適当な拡大倍率で縮小して記憶された縮小画像から必要な画像を抽出して描画処理するかを、前記部分領域毎に選択する選択処理と、前記選択された描画処理を行う画像描画処理とを実行するためのプログラムを記録したものである。
【0010】
【発明の実施の形態】
以下、本発明の実施の形態を図面を参照して説明する。
本実施の形態は、CAD データについて、その任意の範囲を任意の拡大倍率で表示するとき、拡大倍率が一定値以下であれば、特に高速な描画を行う構成を提供するものである。即ち、本実施の形態では、描画時間が逆転する条件を境に処理を切り替えて高速な処理を選択するため、どの部分領域に対しても、縮小画像を用いることで却って速度が低下することはない。
【0011】
まず、本実施の形態を概略的に説明する。
図1において、画像複雑度記憶部31は、CAD データを画像に展開するときに必要な処理時間を見積もった数値である画像複雑度を、画像の部分領域毎に記憶している。CAD データ記憶部32は、CAD データを記憶している。縮小画像記憶部33は、CAD データを画像に展開した後で、適当な拡大倍率で縮小した画像を記憶している。入力分析手段21は、CAD データの展開範囲を、画像複雑度記憶部31から検索し、CAD データの展開範囲内の部分領域に画像複雑度を付与する。画像描画手段22は、画像複雑度記憶部31から入力、即ち、CAD データの展開範囲と、展開時のCAD データの拡大倍率と、CAD データの展開範囲内の部分領域に付与された画像複雑度を受け取る。
【0012】
画像描画手段22は、各部分領域について、画像複雑度と指定された拡大倍率とから、CAD データを展開する処理時間と、縮小画像から必要な画像を抽出する処理時間とを見積もる。そして、CAD データを展開する処理時間の方が短いと判定すれば、CAD データを展開して画像を描画し、そうでなければ、縮小画像記憶手段33に記憶された縮小画像から必要な画像を抽出して描画する。
これにより、CAD データの複雑度とCAD データの拡大倍率に応じて適応的に、CAD データからの展開と、縮小画像からの画像の抽出を使い分けることで、高速な描画を実現する。
【0013】
図1は本発明の第1の実施の形態によるCAD データ表示装置を示すブロック図である。
図1において、本装置は、キーボード等の入力装置1と、プログラム制御により動作するデータ処理装置2と、情報を記憶する記憶装置3と、ディスプレイ装置や印刷装置等の出力装置4とを含む。
記憶装置3は、画像複雑度記憶部31と、CAD データ記憶部32と、縮小画像記憶部33とを備えている。
【0014】
画像複雑度記憶部31は、CAD データを画像に展開するときに必要な処理時間を見積もった数値である画像複雑度を、画像の部分領域毎に記憶している。部分領域のとり方は任意であるが、例えば、図3に示すように、CAD データの全範囲を正方格子状に分割し、正方格子を部分領域とすることができる。
【0015】
図3において、左上3×3の正方格子について、正方格子の中に書かれている数値が画像複雑度である。図3では省略してあるが、実際には全ての正方格子に対して画像複雑度を与える。画像複雑度としては、例えば、CAD データを適当な拡大倍率で展開して、部分領域を描画するために必要な計算時間を実測し、その計算時間を適当にスケーリングして用いることができる。
【0016】
CAD データ記憶部32は、CAD データを記憶している。
縮小画像記憶部33は、CAD データを画像に展開した後で、適当な拡大倍率で縮小した画像を記憶している。
【0017】
データ処理装置2は、入力分析手段21と、画像描画手段22とを備える。
入力分析手段21は、入力装置1から与えられたCAD データの展開範囲を、画像複雑度記憶部31から検索し、CAD データの展開範囲内の各部分領域に画像複雑度を付与する。
【0018】
画像描画手段32は、画像複雑度記憶部31から入力、即ち、CAD データの展開範囲と、展開時の拡大倍率と、CAD データの展開範囲内の部分領域に付与された画像複雑度を受け取る。そして、画像描画手段32は、展開時の拡大倍率と予め定められたしきい値A を比較し、しきい値A 以上であれば、縮小画像記憶部33に記憶された縮小画像からでは必要な解像度が得られないと判定し、CAD データを展開して画像を描画する。
【0019】
ここで、しきい値A は、縮小画像記憶手段33に記憶されている縮小画像からでは、指定されたCAD データの拡大倍率の画像を望ましい品質で抽出することができないという、拡大倍率に設定されるべきである。例えば、縮小画像を生成する際に用いた拡大倍率をそのまましきい値A とすることができる。
【0020】
一方、拡大倍率がしきい値A 以下であれば、縮小画像記憶手段33に記憶された縮小画像を利用して描画する。即ち、CAD データの展開領域の各部分領域毎に、画像複雑度と予め定められたしきい値を比較し、しきい値B 以上であれば、CAD データを展開する処理時間よりも縮小画像記憶手段33に記憶された縮小画像から必要な画像を抽出する処理時間の方が短いと判定し、縮小画像から必要な画像を抽出して描画する。しきい値B 未満であれば、CAD データを展開して画像を描画する。
【0021】
しきい値B の決め方は任意であるが、例えば、画像複雑度がx であるとき、CAD データを展開する処理時間と、縮小画像から抽出する処理時間とが拮抗する拡大倍率y=f (x )を実験によって定め、このyをしきい値B とすることができる。
【0022】
次に、図1及び図2のフローチャートを参照して本実施の形態の動作を詳細に説明する。
入力装置1から与えられたCAD データの展開範囲と拡大倍率は、入力分析手段21に供給される。入力分析手段21は、CAD データの展開範囲を、画像複雑度記憶手段31から検索する。例えば図4のようにCAD データの展開範囲が与えられたする。ここで図4において、CAD データの展開範囲の外郭は、下端が正方格子を2等分している他は全て正方格子上を通っているものとする。このとき、入力分析手段21による検索結果は図5のようになる。即ち、CAD データの展開範囲は9つの部分領域に分割され、各々の部分領域に図5のように画像複雑度が与えられる。
【0023】
図5における下から3つの部分領域に対する画像複雑度は、図3における正方格子の面積に対し、CAD データの展開範囲が占める面積が2分の1であることから、画像複雑度も2分の1としている。正方格子とCAD データの展開範囲が一致しない場合には、この例のように、重なる面積に比例した画像複雑度を割り当てればよい(図2のステップA1)。
【0024】
画像描画手段22は、画像複雑度記憶部31からCAD データの展開範囲と、CAD データの拡大倍率と、CAD データの展開範囲内の各部分領域に割り当てられた画像複雑度を入力として受け取る。そしてまず、CAD データの拡大倍率と、しきい値A とを比較する(ステップA2)。比較の結果、CAD データの拡大倍率がしきい値A 以上であれば、CAD データ範囲内の全領域について、CAD データ記憶部32内のCAD データを画像に展開し、描画して処理を終了する(ステップA3)。
【0025】
そうでなければステップA4へ進み、CAD データ展開領域内の部分画像を一つ選択しステップA5へ進む。選択する順序は任意でよいが、例えば、まず左上から右上へ、次に一つの段を左から右へ、というように順次選択することができる。
次に、選択された部分領域に割り当てられた画像複雑度をしきい値B と比較する(ステップA5)。比較の結果、割り当てられた画像複雑度がしきい値B 以上であれば、縮小画像から部分領域に対応する画像を抽出して描画し、ステップA8へすすむ(ステップA6)。
【0026】
また、割り当てられた画像複雑度がしきい値B 未満であれば、CAD データ記憶部32に記憶されたCAD データを展開し、部分領域に対応する画像を描画し、ステップA8へ進む(ステップA7)。ステップA8では、CAD データ展開範囲内の全ての部分領域が選択済みであるかどうかを判定する。もし、全ての部分領域が選択済みであれば、CAD データ展開範囲内の画像が全て描画できたことになるので、描画結果を出力装置4に出力して処理を終了する。そうでなければ、ステップA4へ進む(ステップA8)。
【0027】
次に、具体例を用いた動作を説明する。
画像複雑度記憶部31には、図3に示すように、画像複雑度が記憶されているとする。今、図4に示すようなCAD データ展開範囲が入力装置1から与えられたとする。また拡大倍率は0.1倍、しきい値A は0.2倍、しきい値B は拡大倍率をxとしたとき1/ xであるとする。即ち、この例ではしきい値B は10となる。
【0028】
入力画像分析手段21は、CAD データ展開範囲を、画像複雑度記憶部31から検索し、CAD データ展開範囲に図5のような画像複雑度を割り当てる(ステップA1)。次に画像描画手段22は、拡大倍率としきい値A を比較する。この例では、拡大倍率がしきい値A 未満であるので、ステップA4へ進む(ステップA2)。次に、図5の9つの部分領域から左上の部分領域を選択する(ステップA4)。次に、選択した部分領域に割り当てられた画像複雑度としきい値B を比較する(ステップA5)。
【0029】
図5から画像複雑度は0であり、一方しきい値B は10であるから、CAD データから画像を展開して部分領域を描画する(ステップA7)。次に、全ての部分領域が選択済みかどうかを判定する。未だ9つの部分領域のうち1つしか選択されていないからステップA4へ進む(ステップA8)。次に、図5にある9つの部分領域のうち、上段中列の部分領域を選択する(ステップA4)。今度は、選択した部分領域に割り当てられた画像複雑度が15であり、しきい値B より大きいので、縮小画像から画像を抽出して、部分領域を描画する(ステップA5及びステップA6)。未だ、9つの部分領域のうち2つしか選択されていないのでステップA4へ進む(ステップA8)。
【0030】
以下、同様にして9つの部分領域を次々と選択し、描画していく。全ての部分領域が選択された時、CAD データの描画は完了し、直後のステップA8によって描画結果が出力装置4に出力され、処理は終了する。
【0031】
次に、本発明の第2の実施の形態について説明する。
第1の実施の形態の縮小画像記憶部33は、CAD データ全範囲にわたって縮小画像を記憶していたが、次のような構成も可能である。
即ち、縮小画像記憶部33の記憶容量を小さくするために、図6に示すように、CAD データからの展開時間が特に長い部分領域についてのみ、縮小画像を用意しておく。
【0032】
このとき、描画手段22において、縮小画像が用意されていない部分領域に対して、ステップA6が実行されないようにする必要がある。そのためには、画像複雑度記憶部31においては、縮小画像が用意されていない部分領域に対して、画像複雑度を0と記憶しておけばよい。
尚、本実施の形態の他の部分の構成は、図1と同様である。
【0033】
次に、本発明の第3の実施の形態について説明する。
第1、第2の実施の形態において、縮小画像記憶部32に記憶されている縮小画像の拡大倍率は1通りのみであった。しかし、次のような構成も可能である。即ち、本実施の形態は、図7に示すように、2つの異なる拡大倍率の縮小画像を記憶するための2つの縮小画像記憶部331と332、及びそれら縮小画像に対応する画像複雑度を記憶する画像複雑度記憶部311と312を備えている点で図1の構成と異なる。
【0034】
本実施の形態では、CAD データ拡大倍率を入力すると、どちらの縮小画像を利用するべきかを出力する関数を予め定義しておく。入力分析手段21は、この関数を利用して2つの画像複雑度記憶部311、312のいずれを利用するかを判定する。画像描画手段22も、この関数を利用して2つの縮小画像記憶部331、332のいずれを利用するかを判定する。
尚、図7では2つの異なる拡大倍率の縮小画像を用いたが、3つ以上の場合も同様に構成可能である。
【0035】
次に、本発明の第4の実施の形態によるコンピュータ読み取り可能な記録媒体について説明する。
図1、図7の動作に基づく図2のフローチャートを含む処理を、データ処理装置2におけるCPUが実行するためのCAD データ表示用のプログラムを格納する記録媒体は、本発明によるコンピュータ読み取り可能な記録媒体を構成する。
【0036】
この記録媒体としては、光磁気ディスク、光ディスク、半導体メモリ、磁気記録媒体等を用いることができ、これらをROM、RAM、CD−ROM、フロッピー(登録商標)ディスク、メモリカード等に構成して用いてよい。
【0037】
またこの記録媒体は、インターネット等のネットワークや電話回線等の通信回線を介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部のRAM等の揮発性メモリのように、一定時間プログラムを保持するものも含まれる。
【0038】
また上記プログラムは、このプログラムを記憶装置等に格納したコンピュータシステムから伝送媒体を介して、あるいは伝送媒体中の伝送波により他のコンピュータシステムに伝送されるものであってもよい。上記伝送媒体とは、インターネット等のネットワーク(通信網)や電話回線等の通信回線(通信線)のように情報を伝送する機能を有する媒体をいうものとする。
【0039】
また、上記プログラムは、前述した機能の一部を実現するためであってもよい。さらに、前述した機能をコンピュータシステムに既に記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であってもよい。
【0040】
従って、この記録媒体を図1、図7のシステム又は装置とは異なるシステム又は装置において用い、そのシステム又は装置のコンピュータがこの記録媒体に格納されたプログラムを実行することによっても、各実施の形態で説明した機能及び効果と同等の機能及び効果を得ることができ、本発明の目的を達成することができる。
【0041】
【発明の効果】
本発明の効果は、CAD データの任意の範囲を一定値以下の拡大倍率で表示するとき、その表示速度を向上させることである。
その理由は、予めCAD データを展開した後、縮小した画像から抽出して描画する方式と、CAD データを展開して画像を描画する方式との2つの画像描画方式を備え、CAD データの部分領域における画像複雑度や拡大倍率に応じて、最適な画像描画方式を選択して描画するからである。これにより、最悪でも画像描画速度は従来方式と同程度であり、一般的には、従来方式と比べて画像描画速度を向上することができる。
【図面の簡単な説明】
【図1】本発明の第1及び第2の実施の形態によるCAD データ表示装置を示すブロック図である。
【図2】本発明の第1の実施の形態の動作を示すフローチャートである。
【図3】CAD データの全範囲を正方格子状に分割して部分領域とした例を示す構成図である。
【図4】CAD データの展開範囲の例を示す構成図である。
【図5】CAD データの展開範囲の例を拡大して示す構成図である。
【図6】本発明の第2の実施の形態によるCAD データの全範囲における縮小画像を記憶している部分領域を示す構成図である。
【図7】本発明の第3の実施の形態によるCAD データ表示装置を示すブロック図である。
【符号の説明】
1 入力装置
2 データ処理装置
21 入力分析手段
22 画像描画手段
3 記憶装置
31、311、312 画像複雑度記憶部
32 CAD データ記憶部
33、331、332 縮小画像記憶部
4 出力装置
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a CAD data display device and method for developing CAD data, drawing the CAD data, and displaying the data on a display, printing, and the like, and a computer-readable recording medium recording a program for displaying CAD data.
[0002]
[Prior art]
The CAD data does not store an image but stores data necessary for reproducing the image. Therefore, in order to display an image in the CAD data display system, it is necessary to develop the data into the image. At this time, if the designated expansion range is wide, it is necessary to expand a large amount of data, so that there is a problem that the drawing time becomes long. Therefore, a method has conventionally been adopted in which data is developed and stored in an image in advance, and this image is appropriately enlarged and reduced and displayed, as in Japanese Patent Application Laid-Open No. H11-110169.
[0003]
Also, when the image after expansion is large, the image is appropriately reduced and stored, and when the expansion range is wide, this reduced image is appropriately enlarged and reduced and displayed. . When this method is used, it is not necessary to develop CAD data into an image, so that an image can be displayed at higher speed.
[0004]
[Problems to be solved by the invention]
However, the above prior art has the following problems.
That is, when compared with a specific partial area, the drawing speed may be rather lowered.
The reason will be described. For example, consider a case where there are only n small quadrangles of the same shape that do not overlap each other in one certain partial region. At this time, if an image corresponding to the partial area is developed from the CAD data, only n small squares need to be drawn. On the other hand, in order to extract an image from a reduced image, it is necessary to scan the entire partial area. Here, it should be noted that in the latter processing, the drawing time is constant regardless of the value of n.
[0005]
By the way, when n = 0, since there is no CAD data to be developed, it is obviously faster to develop the image from the CAD data. When n = 1, 2,..., where the drawing times are reversed depends on the characteristics of the entire system, the size of the partial area, and the magnification.
As described above, in the related art, since the processing is always performed by only one method, there is a problem that the speed may be reduced.
[0006]
SUMMARY OF THE INVENTION It is an object of the present invention to provide a CAD data display device and method capable of solving the above problems and rendering CAD data at high speed, and a computer-readable recording medium storing a CAD data display program.
[0007]
[Means for Solving the Problems]
In order to achieve the above object, a CAD data display device according to the present invention provides an image complexity storage device that stores a processing time required for developing CAD data into an image as an image complexity for each partial area of the CAD data. Means, a reduced image storage means for storing an image reduced at an appropriate enlargement magnification after expanding the CAD data, and comparing the stored image complexity with a threshold value, based on the comparison result, An image drawing means is provided for selecting and drawing, for each of the partial regions, whether to draw and develop an image or to extract and draw a required image from the stored reduced image.
[0008]
In the CAD data display method according to the present invention, the processing time required for developing CAD data into an image is stored as image complexity for each partial area of CAD data, and an appropriate enlargement is performed after CAD data is expanded. The image reduced by the magnification is stored, the stored image complexity is compared with a threshold value, and an image is developed and drawn from the CAD data according to the comparison result, or a necessary image is stored from the stored reduced image. Whether to extract and draw a proper image is selected and drawn for each of the partial areas.
[0009]
Further, a computer-readable recording medium on which a program for displaying CAD data according to the present invention is recorded is stored for each partial area of CAD data, with the processing time required for developing CAD data into an image as image complexity. A comparison process of comparing the image complexity and a threshold value, and developing or drawing an image from the CAD data according to the comparison result, or reducing the size of the CAD data at an appropriate magnification after expanding the data. A program for executing a selection process for selecting, for each of the partial areas, whether to extract a required image from the stored reduced image and performing a drawing process, and an image drawing process for performing the selected drawing process is recorded. It was done.
[0010]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
The present embodiment provides a configuration for performing particularly high-speed drawing when an arbitrary range of CAD data is displayed at an arbitrary magnification when the magnification is equal to or smaller than a predetermined value. That is, in the present embodiment, the processing is switched on the condition that the drawing time is reversed, and the high-speed processing is selected. Therefore, for any partial area, the use of the reduced image does not reduce the speed. Absent.
[0011]
First, the present embodiment will be schematically described.
In FIG. 1, an image complexity storage unit 31 stores, for each partial region of an image, image complexity, which is a numerical value estimating a processing time required for developing CAD data into an image. The CAD data storage unit 32 stores CAD data. The reduced image storage unit 33 stores an image reduced by an appropriate enlargement ratio after developing CAD data into an image. The input analysis means 21 retrieves the development range of the CAD data from the image complexity storage unit 31 and assigns the image complexity to a partial area within the development range of the CAD data. The image drawing means 22 receives an input from the image complexity storage unit 31, that is, a development range of the CAD data, an enlargement magnification of the CAD data at the time of development, and an image complexity assigned to a partial area within the development range of the CAD data. Receive.
[0012]
The image drawing means 22 estimates a processing time for developing the CAD data and a processing time for extracting a required image from the reduced image, based on the image complexity and the designated magnification for each partial area. If it is determined that the processing time for expanding the CAD data is shorter, the CAD data is expanded and the image is drawn. Otherwise, the required image is extracted from the reduced image stored in the reduced image storage unit 33. Extract and draw.
Thereby, high-speed drawing is realized by selectively using the development from the CAD data and the extraction of the image from the reduced image according to the complexity of the CAD data and the magnification of the CAD data.
[0013]
FIG. 1 is a block diagram showing a CAD data display device according to a first embodiment of the present invention.
In FIG. 1, the apparatus includes an input device 1 such as a keyboard, a data processing device 2 that operates under program control, a storage device 3 that stores information, and an output device 4 such as a display device or a printing device.
The storage device 3 includes an image complexity storage unit 31, a CAD data storage unit 32, and a reduced image storage unit 33.
[0014]
The image complexity storage unit 31 stores, for each partial region of the image, the image complexity which is a numerical value estimating the processing time required for developing the CAD data into the image. The partial area can be arbitrarily selected. For example, as shown in FIG. 3, the entire range of the CAD data can be divided into a square lattice, and the square lattice can be used as the partial area.
[0015]
In FIG. 3, for a 3 × 3 square grid at the upper left, the numerical value written in the square grid is the image complexity. Although omitted in FIG. 3, the image complexity is actually given to all the square lattices. As the image complexity, for example, CAD data is developed at an appropriate enlargement magnification, the calculation time required to draw a partial area is measured, and the calculation time is appropriately scaled and used.
[0016]
The CAD data storage unit 32 stores CAD data.
The reduced image storage unit 33 stores an image reduced by an appropriate enlargement ratio after developing CAD data into an image.
[0017]
The data processing device 2 includes an input analysis unit 21 and an image drawing unit 22.
The input analysis unit 21 searches the image complexity storage unit 31 for the development range of the CAD data provided from the input device 1, and assigns the image complexity to each partial area within the development range of the CAD data.
[0018]
The image drawing means 32 receives the input from the image complexity storage unit 31, that is, the expansion range of the CAD data, the enlargement magnification at the time of expansion, and the image complexity assigned to the partial area within the expansion range of the CAD data. Then, the image drawing means 32 compares the enlargement magnification at the time of development with a predetermined threshold A, and if the magnification is equal to or larger than the threshold A, it is necessary to start from the reduced image stored in the reduced image storage 33. It is determined that the resolution cannot be obtained, and the image is rendered by expanding the CAD data.
[0019]
Here, the threshold value A is set to an enlargement magnification such that an image having the enlargement magnification of the designated CAD data cannot be extracted with a desired quality from the reduced image stored in the reduced image storage unit 33. Should be. For example, the magnification used when generating the reduced image can be directly used as the threshold value A 1.
[0020]
On the other hand, if the enlargement magnification is equal to or smaller than the threshold value A, drawing is performed using the reduced image stored in the reduced image storage unit 33. That is, for each partial area of the CAD data development area, the image complexity is compared with a predetermined threshold value, and if it is equal to or greater than the threshold value B, the reduced image storage time is longer than the processing time for developing the CAD data. It is determined that the processing time for extracting the required image from the reduced image stored in the means 33 is shorter, and the required image is extracted from the reduced image and drawn. If the value is less than the threshold value B, the CAD data is expanded to draw an image.
[0021]
The method of determining the threshold value B 1 is arbitrary. For example, when the image complexity is x 2, the magnification time y = f (x) in which the processing time for expanding the CAD data and the processing time for extracting from the reduced image compete with each other. ) Is determined experimentally, and this y can be set as the threshold value B 1.
[0022]
Next, the operation of the present embodiment will be described in detail with reference to the flowcharts of FIGS.
The development range and magnification of the CAD data provided from the input device 1 are supplied to the input analysis means 21. The input analysis unit 21 searches the development range of the CAD data from the image complexity storage unit 31. For example, as shown in FIG. 4, a development range of CAD data is given. In FIG. 4, it is assumed that the outline of the development range of the CAD data all passes on the square lattice except that the lower end bisects the square lattice. At this time, the search result by the input analysis unit 21 is as shown in FIG. That is, the development range of the CAD data is divided into nine partial areas, and the image complexity is given to each partial area as shown in FIG.
[0023]
The image complexity with respect to the three partial regions from the bottom in FIG. 5 is smaller than the area of the square grid in FIG. It is set to 1. If the development range of the square grid and the CAD data do not match, an image complexity proportional to the overlapping area may be assigned as in this example (step A1 in FIG. 2).
[0024]
The image drawing means 22 receives, as inputs, the CAD data development range, the CAD data enlargement magnification, and the image complexity assigned to each partial area within the CAD data development range from the image complexity storage unit 31. Then, the magnification of the CAD data is compared with the threshold value A (step A2). As a result of the comparison, if the enlargement magnification of the CAD data is equal to or larger than the threshold value A, the CAD data in the CAD data storage unit 32 is developed into an image for all the areas within the CAD data range, and the processing is completed. (Step A3).
[0025]
Otherwise, the process proceeds to step A4, selects one partial image in the CAD data development area, and proceeds to step A5. The order of selection may be arbitrary. For example, the selection may be performed sequentially from the upper left to the upper right, and then one stage from the left to the right.
Next, the image complexity assigned to the selected partial area is compared with a threshold value B (step A5). As a result of the comparison, if the assigned image complexity is equal to or greater than the threshold value B, an image corresponding to the partial area is extracted from the reduced image and drawn, and the process proceeds to step A8 (step A6).
[0026]
If the assigned image complexity is less than the threshold value B, the CAD data stored in the CAD data storage unit 32 is expanded, an image corresponding to the partial area is drawn, and the process proceeds to step A8 (step A7). ). In step A8, it is determined whether or not all the partial areas within the CAD data development range have been selected. If all the partial areas have been selected, it means that all the images within the CAD data development range have been drawn, so the drawing result is output to the output device 4 and the process is terminated. If not, the process proceeds to step A4 (step A8).
[0027]
Next, an operation using a specific example will be described.
It is assumed that the image complexity storage unit 31 stores the image complexity as shown in FIG. Now, it is assumed that a CAD data development range as shown in FIG. The magnification is 0.1 times, the threshold A is 0.2 times, and the threshold B is 1 / x where x is the magnification. That is, in this example, the threshold value B is 10.
[0028]
The input image analysis means 21 retrieves the CAD data development range from the image complexity storage unit 31, and assigns the image complexity as shown in FIG. 5 to the CAD data development range (step A1). Next, the image drawing means 22 compares the enlargement magnification with the threshold value A 1. In this example, since the enlargement magnification is less than the threshold value A, the process proceeds to step A4 (step A2). Next, an upper left partial area is selected from the nine partial areas in FIG. 5 (step A4). Next, the image complexity assigned to the selected partial area is compared with a threshold value B (step A5).
[0029]
From FIG. 5, since the image complexity is 0 and the threshold value B is 10, the image is developed from the CAD data to draw a partial area (step A7). Next, it is determined whether or not all the partial areas have been selected. Since only one of the nine partial areas has been selected, the process proceeds to step A4 (step A8). Next, a partial area in the upper middle row is selected from the nine partial areas in FIG. 5 (step A4). This time, since the image complexity assigned to the selected partial area is 15 and is larger than the threshold B 2, an image is extracted from the reduced image and the partial area is drawn (steps A5 and A6). Since only two of the nine partial areas have been selected, the process proceeds to step A4 (step A8).
[0030]
Hereinafter, nine partial areas are sequentially selected and drawn in the same manner. When all the partial areas are selected, the drawing of the CAD data is completed, and the drawing result is output to the output device 4 in step A8 immediately thereafter, and the process ends.
[0031]
Next, a second embodiment of the present invention will be described.
Although the reduced image storage unit 33 of the first embodiment stores reduced images over the entire range of CAD data, the following configuration is also possible.
That is, in order to reduce the storage capacity of the reduced image storage unit 33, as shown in FIG. 6, a reduced image is prepared only for a partial area where the development time from CAD data is particularly long.
[0032]
At this time, it is necessary to prevent the drawing unit 22 from executing step A6 on a partial area where a reduced image is not prepared. For that purpose, the image complexity storage unit 31 may store the image complexity as 0 for a partial area where a reduced image is not prepared.
The configuration of other parts of the present embodiment is the same as that of FIG.
[0033]
Next, a third embodiment of the present invention will be described.
In the first and second embodiments, the reduced image stored in the reduced image storage unit 32 has only one magnification. However, the following configuration is also possible. That is, in the present embodiment, as shown in FIG. 7, two reduced image storage units 331 and 332 for storing two reduced images with different magnifications and the image complexity corresponding to the reduced images are stored. The configuration differs from the configuration in FIG. 1 in that image complexity storage units 311 and 312 are provided.
[0034]
In the present embodiment, when a CAD data enlargement magnification is input, a function for outputting which reduced image should be used is defined in advance. The input analysis unit 21 uses this function to determine which of the two image complexity storage units 311 and 312 is to be used. The image drawing unit 22 also uses this function to determine which of the two reduced image storage units 331 and 332 is to be used.
In FIG. 7, reduced images with two different enlargement magnifications are used.
[0035]
Next, a computer-readable recording medium according to a fourth embodiment of the present invention will be described.
A recording medium for storing a program for displaying CAD data for the CPU of the data processing apparatus 2 to execute the processing including the flowchart of FIG. 2 based on the operations of FIGS. Make up the medium.
[0036]
As the recording medium, a magneto-optical disk, an optical disk, a semiconductor memory, can be a magnetic recording medium or the like, used to configure these ROM, RAM, CD-ROM, a floppy disk, a memory card or the like May be.
[0037]
This recording medium stores the program for a certain period of time, such as a volatile memory such as an internal RAM of a computer system serving as a server or a client when the program is transmitted through a network such as the Internet or a communication line such as a telephone line. What is retained is also included.
[0038]
Further, the above program may be transmitted from a computer system storing the program in a storage device or the like to another computer system via a transmission medium or by a transmission wave in the transmission medium. The transmission medium is a medium having a function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line.
[0039]
Further, the program may be for realizing a part of the functions described above. Furthermore, what can implement | achieve the function mentioned above in combination with the program already recorded on the computer system, and what is called a difference file (difference program) may be sufficient.
[0040]
Therefore, each of the embodiments can also be implemented by using this recording medium in a system or apparatus different from the system or apparatus in FIGS. Functions and effects equivalent to the functions and effects described above can be obtained, and the object of the present invention can be achieved.
[0041]
【The invention's effect】
An effect of the present invention is to improve the display speed when an arbitrary range of CAD data is displayed at an enlargement magnification of a certain value or less.
The reason is that there are two image drawing methods, a method of extracting and drawing from a reduced image after CAD data is expanded in advance, and a method of expanding an CAD data and drawing an image. This is because an optimum image drawing method is selected and drawn according to the image complexity and the enlargement magnification in. As a result, at the worst, the image drawing speed is almost the same as that of the conventional method, and in general, the image drawing speed can be improved as compared with the conventional method.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a CAD data display device according to first and second embodiments of the present invention.
FIG. 2 is a flowchart illustrating an operation of the first exemplary embodiment of the present invention.
FIG. 3 is a configuration diagram illustrating an example in which the entire range of CAD data is divided into a square grid to form a partial area.
FIG. 4 is a configuration diagram showing an example of a development range of CAD data.
FIG. 5 is a configuration diagram showing an example of an expanded range of CAD data in an enlarged manner.
FIG. 6 is a configuration diagram showing a partial area storing a reduced image in the entire range of CAD data according to the second embodiment of the present invention.
FIG. 7 is a block diagram showing a CAD data display device according to a third embodiment of the present invention.
[Explanation of symbols]
REFERENCE SIGNS LIST 1 input device 2 data processing device 21 input analysis unit 22 image drawing unit 3 storage device 31, 311, 312 image complexity storage unit 32 CAD data storage unit 33, 331, 332 reduced image storage unit 4 output device

Claims (6)

CAD データを画像に展開するために必要な処理時間を画像複雑度として、CAD データの部分領域毎に記憶する画像複雑度記憶手段と、CAD データを展開した後に適当な拡大倍率で縮小した画像を記憶する縮小画像記憶手段と、前記記憶された画像複雑度としきい値とを比較し、比較結果に応じて前記CADデータから画像を展開して描画するか、前記記憶された縮小画像から必要な画像を抽出して描画するかを、前記部分領域毎に選択して描画する画像描画手段とを設けたことを特徴とするCAD データ表示装置。Image complexity storage means that stores the processing time required to develop CAD data into images as image complexity, for each partial area of CAD data, and images that have been reduced at an appropriate magnification after expanding CAD data. The stored reduced image storage means compares the stored image complexity and the threshold value, and develops and draws an image from the CAD data according to the comparison result, or generates a necessary image from the stored reduced image. An image drawing means for selecting and drawing, for each of the partial areas, whether to extract and draw an image. 前記画像描画手段は、指定されたCAD データ拡大倍率に応じて描画を行い、前記しきい値は、前記CAD データ拡大倍率に応じて適応的に変化することを特徴とする請求項1記載のCAD データ表示装置。2. The CAD according to claim 1, wherein said image drawing means performs drawing in accordance with a designated CAD data enlargement magnification, and said threshold value changes adaptively in accordance with said CAD data enlargement magnification. Data display device. 前記縮小画像記憶手段は、CAD データの全領域のうち一部の領域に対応する部分のみを記憶することを特徴とする請求項1又は2記載のCADデータ表示装置。3. The CAD data display device according to claim 1, wherein the reduced image storage unit stores only a part corresponding to a part of the entire area of the CAD data. 前記画像描画手段は、指定されたCAD データ拡大倍率に応じて描画を行い、前記画像複雑度記憶手段は、複数の異なる画像複雑度を記憶しておき、前記縮小画像記憶手段は、前記複数の異なる画像複雑度に対応する拡大倍率の縮小画像を記憶しておき、前記CAD データ拡大倍率に応じて、画像複雑度に対応する拡大倍率の縮小画像を選択できることを特徴とする請求項1、2又は3のいずれかに記載のCAD データ表示装置。The image drawing means performs drawing according to a designated CAD data enlargement magnification, the image complexity storage means stores a plurality of different image complexity levels, and the reduced image storage means stores the plurality of 2. A reduced image having an enlargement ratio corresponding to a different image complexity is stored, and a reduced image having an enlargement ratio corresponding to the image complexity can be selected according to the CAD data enlargement ratio. The CAD data display device according to any one of 2 and 3. CAD データを画像に展開するために必要な処理時間を画像複雑度として、CAD データの部分領域毎に記憶すると共に、CAD データを展開した後に適当な拡大倍率で縮小した画像を記憶し、前記記憶された画像複雑度としきい値とを比較し、比較結果に応じて前記CADデータから画像を展開して描画するか、前記記憶された縮小画像から必要な画像を抽出して描画するかを、前記部分領域毎に選択して描画することを特徴とするCAD データ表示方法。The processing time required to develop the CAD data into an image is stored as the image complexity for each partial area of the CAD data. Comparing the image complexity and the threshold value, and developing or drawing an image from the CAD data according to the comparison result, or extracting and drawing a necessary image from the stored reduced image, A CAD data display method characterized by selecting and drawing each partial area. CAD データを展開した後に適当な拡大倍率で縮小した縮小画像を予め記憶する記憶処理と、CAD データを画像に展開するために必要な処理時間を画像複雑度として、CAD データの部分領域毎に記憶された前記画像複雑度としきい値とを比較する比較処理と、比較結果に応じて前記CAD データから画像を展開して描画処理するか、あるいは前記記憶処理によって予め記憶された縮小画像から必要な画像を抽出して描画処理するかを、前記部分領域毎に選択する選択処理と、前記選択された描画処理を行う画像描画処理とを実行するためのプログラムを記録したコンピュータ読み取り可能な記録媒体。 A storage process that pre-stores reduced images that have been reduced at an appropriate enlargement ratio after CAD data is expanded, and the processing time required to expand CAD data into images is stored as image complexity for each partial area of CAD data. A comparison process of comparing the calculated image complexity and a threshold value, and developing or drawing an image from the CAD data according to the comparison result, or a necessary process from a reduced image stored in advance by the storage process. A computer-readable recording medium in which a program for executing a selection process of selecting, for each of the partial regions, whether to extract an image and perform a drawing process and an image drawing process of performing the selected drawing process is stored.
JP2000324366A 2000-10-24 2000-10-24 CAD data display device, method and computer-readable recording medium Expired - Lifetime JP3603774B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000324366A JP3603774B2 (en) 2000-10-24 2000-10-24 CAD data display device, method and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000324366A JP3603774B2 (en) 2000-10-24 2000-10-24 CAD data display device, method and computer-readable recording medium

Publications (2)

Publication Number Publication Date
JP2002132235A JP2002132235A (en) 2002-05-09
JP3603774B2 true JP3603774B2 (en) 2004-12-22

Family

ID=18801912

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000324366A Expired - Lifetime JP3603774B2 (en) 2000-10-24 2000-10-24 CAD data display device, method and computer-readable recording medium

Country Status (1)

Country Link
JP (1) JP3603774B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011198932A (en) * 2010-03-18 2011-10-06 Nuflare Technology Inc Method of displaying graphic data and graphic data display device
JP6157971B2 (en) * 2013-07-30 2017-07-05 シャープ株式会社 Desk display device

Also Published As

Publication number Publication date
JP2002132235A (en) 2002-05-09

Similar Documents

Publication Publication Date Title
JP4074366B2 (en) Image search apparatus and method, and recording medium storing image search program
US8194974B1 (en) Merge and removal in a planar map of an image
JP3603774B2 (en) CAD data display device, method and computer-readable recording medium
US20100171750A1 (en) Method and device for generating a complexity vector for at leat one part of an svg scene, and method and testing device for testing a playback suitability of at least part of an svg scene on device
JPH0816824A (en) Three-dimensional computer-aided design apparatus and method
CN101106627A (en) Image processing device and image processing method
JP4639010B2 (en) Large-scale graphic data high-speed drawing method and apparatus
JP4827659B2 (en) Image processing apparatus, image processing method, and computer program
JP5528410B2 (en) Viewer device, server device, display control method, electronic comic editing method and program
CN111951367A (en) Character rendering method, character processing method and device
CN113033173A (en) Streaming document picture loading method and device, electronic equipment and storage medium
JP2011186835A (en) Image processing apparatus and image processing program
US20040179238A1 (en) Document display method and apparatus
JP2001209640A (en) Image information conversion device, image processing device, method and recording medium
JPH06168282A (en) Image data multistage display device
JP4229796B2 (en) DATA DISPLAY DEVICE, DATA DISPLAY METHOD, DATA DISPLAY PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
JP2004253863A (en) Object processing device
JPH08153095A (en) Image management editing system
JP2004341887A (en) Processing method and apparatus for performing interpreter and rendering for each object based on link information in SoftRIP, and storage medium for storing them
CN112580577A (en) Training method and device for generating speaker image based on face key points
JPH05197590A (en) Software test item display processing method
JPH04235686A (en) Image processing device
JPH10143676A (en) Picture processor and method for processing the same and recording medium
JPH03278275A (en) Method for redisplaying edited graphic
JPS6129939A (en) information retrieval device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040113

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040315

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040518

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040714

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040907

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040920

R150 Certificate of patent or registration of utility model

Ref document number: 3603774

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071008

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081008

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091008

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091008

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101008

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111008

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121008

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131008

Year of fee payment: 9

EXPY Cancellation because of completion of term